How to map an object to JSON in Processing

This might have something useful: # JSON - how to get heirarchical names from file.