An example file to go alongside a question asked on Stack Overflow as to how to load a JSON array from an internal array rarther than import it as a file. The example here is a combination of Mike Bostocks Collapsible Tree example and a question asked on Stack Overflow on how to generate multi-level JSON formatted data.
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js