MobileBlur

generic.json at [6548f791b4]
Login

generic.json at [6548f791b4]

File applications/examples/views/generic.json artifact 25f5fba8a2 part of check-in 6548f791b4


{{
###
# 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'] = 'application/json'
except (TypeError, ValueError):
	raise HTTP(405, 'JSON serialization error')
except ImportError:
	raise HTTP(405, 'JSON not available')
except:
	raise HTTP(405, 'JSON error')
}}