Coders Packet

convert XML to json in Java

By Sravani

This project is about converting XML to JSON using java with the help of JSON dependencies

More and more web services provide JSON API rather than XML API. So we need to convert the XML API to JSON API.

We can convert it through a Java program by adding JSON dependencies in the pom file. First, open a new maven project in your eclipse, and then add the JSON dependencies in the pom file, and then in the main class take the input of XML in the string. and we can convert to JSON easily. For more details please check the project.

Hope you like it.

Download Complete Code

Comments

No comments yet