RE: Asking for recommendations of xml 2 json open source projects
Jean Paoli <[email protected]> Thu, 15 Dec 2022 19:03:04 +0000
| Newsgroups | gmane.text.xml.devel |
|---|---|
| Message-ID | <CO3PR13MB5797B4EF2C3EF841577315F5BBE19@CO3PR13MB5797.namprd13.prod.outlook.com> |
Thank you so much Mukul. Very helpful! Java (or any other language) is not a constraint as long as the code is open source because I am trying to understand the different approaches and get some recommendations. https://stleary.github.io/JSON-java/index.html writes: The Sequences of similar elements are represented as JSONArrays. Content text may be placed in a "content" member. ...So very similar to newtonsoft. I am still trying to understand what https://github.com/FasterXML/jackson-dataformat-xml/issues/402 does.... -Jean From: Mukul Gandhi <[email protected]> Sent: Thursday, December 15, 2022 10:18 AM To: Jean Paoli <[email protected]> Cc: Michael Kay <[email protected]>; XML Developers List <[email protected]> Subject: Re: [xml-dev] Asking for recommendations of xml 2 json open source projects Hi Jean, On Thu, 15 Dec, 2022, 01:53 Jean Paoli, <[email protected]<mailto:[email protected]>> wrote: Agree Michael. However, I am trying to understand the current state of xml 2 json systematic transforms as open source. I did not look since a long time... I've found following to be good, 1) https://stleary.github.io/JSON-java/org/json/XML.html<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstleary.github.io%2FJSON-java%2Forg%2Fjson%2FXML.html&data=05%7C01%7Cjeanpa%40docugami.com%7Cbfc0b25dceec4b5e0f0008dadec8cc84%7C86def4f16a0b4e04bf20e8c376733dd3%7C0%7C0%7C638067252363684439%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=h%2BzpRHYYXO4MCl7sdOzdJ3CxNImCxcFFIbbnuyWYOEM%3D&reserved=0> (using org.json Java library) 2) https://www.baeldung.com/jackson-convert-xml-json<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.baeldung.com%2Fjackson-convert-xml-json&data=05%7C01%7Cjeanpa%40docugami.com%7Cbfc0b25dceec4b5e0f0008dadec8cc84%7C86def4f16a0b4e04bf20e8c376733dd3%7C0%7C0%7C638067252363684439%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=ukC1BXFQwvElZGFsyzCQFLhl4xOO%2FlTT%2FbWmODyftyU%3D&reserved=0> (using Jackson Java library) I haven't tested these Java libraries, for XML mixed content to Json conversion (you may, feed XML mixed content data to these libraries, and see what Json documents they emit and see if that succeeds and suites you). But otherwise, these libraries are good for, other kinds of XML information. Also, these libraries are writting for Java applications. I'm not sure, if that could be a constraint for your work. -- Regards, Mukul Gandhi