Is there a quick function to convert JSON objects received via jQuery getJSON to a string variable dump (for tracing/debugging purposes)?
jQuery getJSON
Yes, JSON.stringify, can be found here, it's included in Firefox 3.5.4 and above.
JSON.stringify
A JSON stringifier goes in the opposite direction, converting JavaScript data structures into JSON text. JSON does not support cyclic data structures, so be careful to not give cyclical structures to the JSON stringifier. https://web.archive.org/web/20100611210643/http://www.json.org/js.html
var myJSONText = JSON.stringify(myObject, replacer);
1.4m articles
1.4m replys
5 comments
57.0k users