Is there a simple library that will render JSON objects as trees?
Posted
by Robert Gould
on Stack Overflow
See other posts from Stack Overflow
or by Robert Gould
Published on 2009-03-13T02:07:07Z
Indexed on
2010/06/05
15:32 UTC
Read the original article
Hit count: 185
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?
© Stack Overflow or respective owner