add more arguments to escape #781

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@cloudaice

make escape support more parameters from json

@cloudaice

if we want to return a json response which can be view formatly in browsers,we can code like this:

resp = tornado.escape.json_encode(response.body, indent=4, separators=(',', ': '))
self.write(resp)
@bdarnell
tornadoweb member

See my response in #706

@bdarnell bdarnell closed this May 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment