Both XML and JSON are used to transport data from one server to another. XML requires opening and closing tags and requires some external library to parse it, Whereas JSOn is lightweight and simpler. No external library is required to parse it.Browsers can do it implicitly.
Below is the tool to Convert XML to JSON or JSON to XML on the fly.