JSON Utilities - Convert JSON to XML or Saxonica XML and sort JSON Attributes


Currently JSON Utils helps to convert a JSON to XML, sort all JSON attributes by name in alphabetical order and prettify a JSON online.

Paste the JSON below and click on appropriate action.

Click here to try


Prettify JSON

Pretifying a JSON string for more readability. Prettifying means to indent the attributes properly as per the hierarchy.

Actual JSON String

{"name": "Fname Lname","age": 25, "address": "New York, USA"}

Prettified JSON String

{ "name": "Fname Lname", "age": 25, "address": "New York, USA" }

Click here to try Prettify JSON option

Convert JSON to XML

Converting any JSON to its corresponding XML Structure.

JSON String

{ "name": "Fname Lname", "age": 25, "address": "New York, USA" }

Corresponding XML String

<root> <name>Fname Lname</name> <age>25</age> <address>New York, USA</address> </root>

Click here to try JSON to XML option

Sort JSON attribute names alphabetically

Sorting all attribute names of a JSON alphabetically makes it easy to find the required information.

JSON String

{ "name": "Fname Lname", "age": 25, "address": "New York, USA" }

JSON with sorted attribute names

{ "address": "New York, USA", "age": 25, "name": "Fname Lname" }

Click here to try Sort Attributes option

JSON String to Saxonica XML

Converting JSON to its corresponding Saxonica XML Structure.

JSON String

{ "name": "Fname Lname", "age": 25, "address": "New York, USA" }

Saxonica XML

<map xmlns="http://www.w3.org/2005/xpath-functions"> <string key="name">Fname Lname</string> <number key="age">25</number> <string key="address">New York, USA</string> </map>

Click here to try JSON to Saxonical XML option