Is there a simple library that will render JSON objects as trees?
- by Robert Gould
So, is there a VERY simple library that will render JSON objects as trees?
I know that this can be done in many ways (such as YUI), but for debug purposes I'd like to simply be able to view a JSON objects I receive from a server as a tree, nothing fancy (but collapsable tree's would be a bonus).
The kind of solution I'm looking for would be something like:
<script source="something.js"/>
<script>
obj ={"hello":"world"}
lib.renderJSON("someid",obj);
</script>
...
<div id="someid"/>
Any ideas?