jQuery JSONView
Formats & syntax highlights JSON.
Port of Ben Hollis's JSONView extension for Firefox: http://jsonview.com
Usage
var json = "hey": "guy""anumber": 243"anobject": "whoa": "nuts""anarray": 12"thr<h1>ee" "more":"stuff""awesome": true"bogus": false"meaning": null "japanese":"明日がある。" "link": "http://jsonview.com" "notLink": "http://jsonview.com is great"; ;
Options
collapsed: false
Methods
// collapse nodes; // expand nodes; // toggle nodes; // toggle level1 nodes, also be supported in collapse and expand