json.human.js: Json Formatting for Human Beings

Provide JSON and get a DOM node with a human representation of that JSON.

Why?

At Event Fabric we need to display JSON to people from all technical levels without being too technical but also without losing information about the underlying JSON object.

How?

You can see js/demo.js in the repo for an example, here is a short one

        var node = JsonHuman.format(input);
        output.appendChild(node);
        

Try it

Edit the JSON and click Convert

Input: JSON

Input: Options

Show Array Indices :
Hyperlinks

Enable Hyperlinks
Keys
Hyperlink Target
Boolean Options

Show Text ?
Label for "true"
Label for "false"
Show Image ?
Url for "true"
Url for "false"

Output: HTML

Raw HTML

License?

MIT

Alternatives


Boolean Icons by - https://www.iconfinder.com/iconsets/onebit