Adapt XML->JSON transformation to new data.

We really need an XSD!