What will be the preferred way of converting JSON to XML file? Is it better to use web-service or any Java component? I tried using web-service and still wanted to cross-check if there is any other option to do this.
Asked
Active
Viewed 1,771 times
0
-
1Possible duplicate of [Java implementation of JSON to XML conversion](https://stackoverflow.com/questions/559296/java-implementation-of-json-to-xml-conversion) – Hannes Landeholm Jul 10 '17 at 18:54
-
Welcome to SO Ravindra, please read https://stackoverflow.com/help/how-to-ask on how to ask "good" questions. – John-Philip Jul 10 '17 at 20:25
-
Please indicate what solutions you would accept, i.e. Are PHP solutions admissible, Javascript, etc etc. – Ben Jul 10 '17 at 20:54
-
The solution should be related to Java EE stack Or from Spring (open-source) stack i.e., the solution should use Java EE libraries Or it should use Spring framework libraries only. – Ravindra Prasad Gadde Jul 15 '17 at 12:33
-
Underscore-java library has a static method U.jsonToXml(json). – Valentyn Kolesnikov Mar 04 '20 at 06:07
1 Answers
0
Convert JSON text contained in string json into an XML node
XmlDocument Xmldoc = JsonConvert.DeserializeXmlNode(json);
Here is the documentation: Json to xml

Manoj Kumar
- 332
- 1
- 7