Convert your XML data to a JSON object and verify its validity
XML and JSON are popular formats to store or exchange data between systems. Both are text formats used to represent data in a structured way.
Mockoon supports JSON in all its systems but is also capable of parsing the XML content from entering requests. Mockoon uses the xml-js NPM library to convert XML.
This library is also used in the tool on this page to help you get a preview of the parsing result. It parses the XML in a way that ensures no data is lost during the conversion as there are some differences between XML and JSON.