I have some Data in xml-forma and would like to bootstrap my project with this data.
What is best/easiest to convert from xml to json-object?
Is there already a lib for that ?
We have been converting XML to JSON in Java using this library: GitHub - stleary/JSON-java: A reference implementation of a JSON package in Java.
You can do something like this in Java:
String json = org.json.XML.toJSONObject(xml).toString();
const xmlParser = __.newBean("org.json.XML");
const myJson = JSON.parse(xmlParser.toJSONObject(myXmlString).toString());
– Tom Arild
I already was aware of this library - unfortunately the documentation is not good
But with your help - I will manage this !
@tom Update: it works