jsonTree is a lightweight dependency-free javascript micro-library for creating collapsable tree-lists from a JSON file. If you want to see it in action, please check the example.

I created jsonTree because everything I found on creating collapsable lists was either too big (in terms of both filesize and functionality) or required JQuery (which is another matter altogether). jsonTree provides an infrastructure for the developer to stylize and do with as they please.

To use jsonTree, either download the js file [full|minified] or use npm.
npm install jsontreejs
Then, use
new jsonTree(json, selector, depth);
The 'json' variable is the JSON URL/Object, 'selector' is the element to 'jsonTree-ify', and 'depth' is a boolean to add the 'depth' class to all list children (can increase loading times).