> Hello guys, I have been working with a heavy ajaj app (I hate that
> name), and I find myself doing this a lot, when debugging.
>
> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
