I\'m writing a data viewer page to render objects being sent as JSON from the server. The JSON objects vary in content and complexity, from flat objects with a handful of at
Tooting my own horn, you could probably adapt JSON2HTML to your needs. The source is at https://github.com/bloopletech/json2html - see scripts/parse.js for the core that parses the JSON and generates the HTML.