Re: [xml-dev] JSONx sent to the IETF

From
John Cowan <>
To
David Lee <>
Date
2011-05-03T19:22:02Z
ID
<>
Thread
Re: [xml-dev] JSONx sent to the IETF
David Lee scripsit:

> this is what my personal idea of the 'Ideal XML JSON schema' does:
>
> http://xml.calldei.com/JsonXML
>
> Although its really just a statement ... but then what are specs but
> statements ?

You need to escape LFs inside attributes, because XML parsers change
them to spaces.  You can use either XML or JSON escaping for the
purpose, but I think it's simpler to use JSON escaping for all C0
controls.

You also have to JSON-escape unpaired surrogates.

-- 
Andrew Watt on Microsoft:                       John Cowan
Never in the field of human computing           
has so much been paid by so many                http://www.ccil.org/~cowan
to so few! (pace Winston Churchill)