For anyone who's interested, I've just written up my method of mapping
JSON to XML here:
http://snelson.org.uk/archives/2008/02/parsing_json_in.php
The mapping is fully reversible and can generically convert any (RFC
conformant) JSON.
John
Michael Kay wrote:
> I was actually looking for a generic mapping that would yield an XML
> representation of any JSON document. A reversible mapping would be a bonus.
>
> But of course other people may have subtly different requirements. And it
> looks as if that JSON may be one of those slippery specs (like CSV?) that
> means whatever you want it to mean. Shame, I thought we'd got past that
> phase of evolution.
--
John Snelson, Oracle Corporation http://snelson.org.uk/john
Berkeley DB XML: http://www.oracle.com/database/berkeley-db/xml
XQilla: http://xqilla.sourceforge.net