There is various libraries that convert json to XML and in this example we will show how to convert json to XML using jackson's ObjectMapper and XmlMapper. In the set up, a browser class was created to hold browser information which we will map to below.
First we will create a string of json that represents a list of browsers. Next we will call ObjectMapper.readValue to transform the json into a list of browsers. Once converted we will then write the list of objects as xml.