- From: David Lee <David.Lee@marklogic.com>
- Date: Tue, 24 Jul 2012 11:52:26 -0700
- To: John Cowan <cowan@mercury.ccil.org>
- CC: Dave Pawson <dave.pawson@gmail.com>, public-microxml <public-microxml@w3.org>
> From: John Cowan [mailto:cowan@ccil.org] On Behalf Of John Cowan > > It is common (although wrought with problems) to try to translate JSON > > member names into XML element names. > > I think that's always a mistake, though I understand why people do it. > For one thing, XML names are container (node) labels, whereas JSON names > are element (edge) labels. > I disagree. While in some senses you are correct, the XML and JSON models are mis matched. Thus ANY attempt at translation is non perfect. But If it were not for the naming issue, there is a huge set of JSON documents where it makes perfect sense to map JSON member names to XML element names when converting from JSON to XML (but not visa versa except when round tripping). I disagree this is 'always a mistake'. ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation dlee@marklogic.com Phone: +1 650-287-2531 Cell: +1 812-630-7622 www.marklogic.com This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation.
Received on Tuesday, 24 July 2012 18:52:53 UTC