Java program that converts from XML to JSON and viceversa