Format a Nested JSON Array
Format a deeply nested JSON array of objects with proper indentation.
Input
{"users":[{"id":1,"name":"Ada","tags":["admin","beta"]},{"id":2,"name":"Linus","tags":["user"]}]}Output
{
"users": [
{
"id": 1,
"name": "Ada",
"tags": ["admin", "beta"]
},
{
"id": 2,
"name": "Linus",
"tags": ["user"]
}
]
}How it works
The formatter expands the minified JSON, keeping short arrays on one line for readability while breaking object properties onto separate lines.
Try it yourself
Open the full JSON Formatter to run this example on your own data.
Open JSON Formatter