delfair / json-to-html-converter

Converts JSON data to HTML table with collapsible details view for nested objects.

Home Page:https://niksofteng.github.io/json-to-html-converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON to HTML Converter

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

Usage

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> };

About

Converts JSON data to HTML table with collapsible details view for nested objects.

https://niksofteng.github.io/json-to-html-converter

License:MIT License


Languages

Language:JavaScript 75.4%Language:HTML 19.1%Language:CSS 5.5%