blob: 23f518133eb0f1ccb353cbe3b6bea773791808ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{{
###
# response._vars contains the dictionary returned by the controller action
###
try:
from gluon.serializers import json
response.write(json(response._vars),escape=False)
response.headers['Content-Type']='text/json'
except:
raise HTTP(405,'no json')
}}
|