JSON Formatter
Format valid JSON and inspect nested values.
Try this example
Paste the sample and select Format. The keys and values should stay the same while the object and array are spread over several lines.
{"item":"notebook","stock":[2,0],"active":true}Expected result
{
"item": "notebook",
"stock": [2, 0],
"active": true
}Try {"item":"notebook",} and remove the final comma when validation fails. Keep very large identifiers in quotes, since numeric values can lose precision in browser editors.
Related walkthrough · JSON to CSV: keep identifiers, commas and empty cells intact