Updated the usage of tojson in templates according to the last Flkas-Admin documentation.

For more details, see https://github.com/mitsuhiko/flask/blob/c502dfbbfbee49c15ce4a57f7d417b71a73a10b6/flask/json.py#L179