Top-level keys
| Key | Type |
|---|---|
| status | string |
| data | array (1) |
| meta | object |
{
"status": "ok",
"data": [
{
"id": 1,
"name": "Acme"
}
],
"meta": {
"page": 1,
"count": 1
}
}JSON (JavaScript Object Notation) is a text format for structured data made of objects, arrays, strings, numbers, booleans, and null.
Format, validate, minify and sort JSON online, with the exact parser error when it is invalid. Free, and your JSON never leaves your browser.
Last reviewed
Your inputs are saved as a draft in this browser only. Nothing is uploaded.
| Key | Type |
|---|---|
| status | string |
| data | array (1) |
| meta | object |
{
"status": "ok",
"data": [
{
"id": 1,
"name": "Acme"
}
],
"meta": {
"page": 1,
"count": 1
}
}{
"status": "ok",
"data": [
{
"id": 1,
"name": "Acme"
}
],
"meta": {
"page": 1,
"count": 1
}
}{"id":1,"tags":["a","b"]} formatted with a 2-space indent puts "id" and "tags" on their own lines and each array item on its own line inside the brackets.
Choose Minify to remove every space and line break outside strings, so a formatted payload becomes a single line such as {"id":1,"tags":["a","b"]}.
{"b":2,"a":{"d":4,"c":3}} sorted recursively becomes {"a":{"c":3,"d":4},"b":2}. Array items keep their order; only object keys are sorted.
{"a":1,} is invalid JSON. Remove the comma after the last property or array item.
{'a':1} and {a:1} are valid JavaScript but not JSON. Keys and strings must use double quotes: {"a":1}.
JSON has no comments, so // and /* */ lines make the input invalid. Remove them, or keep them only in formats that allow them, such as JSONC or JSON5.
{"id":12345678901234567890} comes back as 12345678901234567000, because JavaScript numbers lose precision above 9007199254740991. Send large IDs as strings to keep them exact.