How to use the JSON formatter
- Paste JSON into JSON One (or JSON Two).
- Click Format to pretty print, or Minify for compact JSON.
- Use Sort to alphabetize object keys, or Load Diff to compare.
On mobile, try the simpler editor at /onefile/.
Example: pretty print vs minify
{"user":{"id":42,"name":"Asha","active":true},"roles":["admin","editor"]}
After formatting:
{
"user": {
"id": 42,
"name": "Asha",
"active": true
},
"roles": [
"admin",
"editor"
]
}