changing
@expose('json')
to
@expose()
changing return type to str, in order to see the actual json stream on
the browser window.
so why not have a @expose('jsondebug') that will
1- set content type to text (so browsers will display instead of download)
2- pretty print the json obj, so we will get structure instead of a single line
3- ???
what do you think?
This problem can be solved by installing the JSONView Firefox plugin.
It will render the json response with syntax highlighting, folding and
indentation. No need to introduce anything to tg.
https://addons.mozilla.org/en-US/firefox/addon/10869/
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown