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
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).