JSON Editor
Format, minify, validate, and explore JSON without sending it anywhere. The editor runs entirely in your browser.
Paste JSON into the code panel and use Format to indent it or Minify to remove whitespace. The status indicator validates as you type, and the tree panel lets you expand, collapse, and edit values without leaving the code view.
JSON does not allow a trailing comma before a closing brace or bracket. {"active":true} is valid. {"active":true,} is invalid because the comma promises another member that never arrives.
Valid, formatted, and invalid JSON
Valid input
{"active":true}After Format
{
"active": true
}Invalid input
{"active":true,}The invalid example fails because of the trailing comma. Your browser supplies the exact parser message, which the editor shows below the panels.
Try the JSON Editor
Valid
Code