Re: Asking for recommendations of xml 2 json open source projects

John Cowan <[email protected]> Fri, 20 Jan 2023 22:45:02 -0500
Newsgroups gmane.text.xml.devel
Message-ID <CABzTEQB0FrrE5-GOOSOs6vMW+M=bu7C1PCzjh+jbMGMuGkiu-A@mail.gmail.com>
On Wed, Dec 14, 2022 at 2:57 PM Jean Paoli <[email protected]> wrote:

> http://www.jsonml.org/ and
> https://www.newtonsoft.com/json/help/html/ConvertingJSONandXML.htm. There
> are issues with both and we are trying to avoid writing our own.
>

JsonML claims to be a round-trip transformation, but it is not.  In
particular, it does not have any way to represent the XML declaration,
comments, processing instructions, or material outside the document
element.  Furthermore, CDATA sections, entity references, and character
references cannot be distinguished from their literal equivalents.  But if
these don't matter to you, it's a pretty good mapping.