json-pretty-html
json-pretty-html copied to clipboard
Transforms a JSON object to a pretty piece of HTML
Functions currently throw an exception, but I use this to output a readable error object. So I don't want any exceptions from pretty print. ```js var json = { foo:...
Rendered HTML looks much better when quotes of key and string literals are a part of the same style. Included quotes inside and tags.
test: ```js var json = { "tags": ["cold", "ice", ["fire", "water"]] }; var prettyHtml = require('json-pretty-html').default; var html = prettyHtml(json, json.dimensions); ``` ```html { "tags": [ "cold", "ice", { "0":...