Converts JSON data to HTML table with collapsible details view for nested objects. Check site for sample outputs.
https://niksofteng.github.io/json-to-html-converter
var j2ht = new J2HConverter(<json_string>, <id_of_container_element>); j2ht.convert();
Additionally, table attributes can be set using object:
j2ht.attributes = { class: <css_class/es> };