PDA

View Full Version : Pretty print json



vipinsudhakar
22 Sep 2014, 6:31 AM
I have a AJAX request which return a JSON message to ExtJS page.
I want to display pretty print json in extjs
Thanks

slemmon
22 Sep 2014, 9:58 PM
Hi,

You can use javascript's stringify method (check browser availability).

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify

anr