Render JSON output as HTML
Input a JSON object, and HTML is returned in a way that makes it easy to style/format.
HTML
<script src="/../build/json-to-html.js"></script>
<div id="output"></div>
JS
const data = {
hello: "world",
values: [1, 2, 3]
}
const el = $('#output')
const html = new JSONView({
data: data,
el: el
})