Welcome to JSON Formatter
view type:
About JSON formatter
JSON (JavaScript Object Notation) is a lightweight data exchange format. Easy for humans to read and write. It is also easy for machines to parse and generate.
What can the JSON formatter be used for?
- Verify JSON data
- Beautify JSON and indent the code level
- Restore compressed JSON text
- Edit JSON text
how to use?
- Paste the code into the first input box
- Click the button
Supported display view types
- Display JSON original data view
- Display JSON editable tree view
Will the site store my code?
No, all operations run in your browser, please feel free to use it
JSON format example
{
"firstName": "John",
"lastName": "Smith",
"sex": "male",
"age": 25,
"address":
{
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
},
"phoneNumber":
[
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "fax",
"number": "646 555-4567"
}
]
}