Hello again Jeff,
I'm not aware of any work that has been done to date on DDMS-to-JSON mappings. I opened up
Issue #218 to track this enhancement request.
In the meantime, take a look at the toText() method on the Resource class. This converts the record into a flat name-value pairing of data in accordance with the DDMS specification's suggested approach for Text output. (There is a comparable toHTML() method which creates HTML meta tags with the same data). The original specification resulted in some ambiguities on naming and proper namespacing in the flat format, but the output from DDMSence has a standardized output with lowerCamel names and consistency.
Additionally, there is a configurable property,
output.indexLevel, that will insert indices into the text output to clear up ambiguity when multiple elements of the same name are possible.
It should be pretty straightforward to parse the flat name-value into flat JSON. As an actual enhancement to the DDMSence library, I would probably want to consider a better hierarchical structure. I'll take a look as time permits and update Issue #218 with my thoughts.
Regards,
BU