Scan the level of definition to generate it's object model as JSON output.