JSON Editor Online
Paste or type JSON and the editor checks it against the strict JSON standard, RFC 8259, then reports valid or invalid with the line and column of the first error. You can pretty-print with the indent you prefer, minify, sort keys and browse the data as a tree. The text stays in your browser and is not uploaded.
Edit and check your JSON
Result
The working
Fill in the boxes above to see the answer and every step.
-
In force from
Checked on
Source: RFC 8259 The JavaScript Object Notation (JSON) Data Interchange Format, node-jsonc-parser (MIT licence, error offsets and parse tree)
Provisional: this rule is a convention or only partly confirmed, so check it against the rule printed on your own form.
What counts as valid JSON
The steps of the worked example appear here.
The text is parsed strictly as RFC 8259 sets out. Comments are not allowed, trailing commas are not allowed, and single quotes, NaN and Infinity are rejected. The top level can be any JSON value. A leading byte order mark is removed with a notice and is never written back on download. Duplicate names are flagged as a warning, because the standard says names should be unique but does not say what happens when they are not. Integers larger than 9,007,199,254,740,991 cannot be held exactly by JavaScript numbers, so the lossless option keeps the original digits in the text. The key-sorted, minified form of the sample object is {"a":[true,null,"x"],"b":1}.
Worked example
An object with one member followed by a comma and then a closing brace is rejected, because a trailing comma is not allowed. The editor reports a SYNTAX error at line 1, column 8, pointing at the closing brace, so you can fix it without hunting through the text.
Format, minify and sort keys
The key-sorted, minified form of the sample object is {"a":[true,null,"x"],"b":1}.
If it is valid you can format it with the indent you prefer, minify it, sort the keys and browse it as a tree.
Frequently asked questions
How to use JSON editor online?
Paste your JSON into the editor. If it is valid you can format it with the indent you prefer, minify it, sort the keys and browse it as a tree. If it is not valid, the message gives the line and column of the first error. A trailing comma in the example is reported at line 1, column 8.
Related tools
Enter an address with a prefix to get the network, broadcast, mask, wildcard and usable host range, with a binary view and a table that splits the block.
Count notes and coinsEnter how many notes and coins you hold to get the total with lakh and crore grouping, or type an amount to see the fewest notes and the amount in words.
Convert wheel offset to backspacingConvert wheel offset to backspacing, compare an old and a new wheel to see how far each edge moves, and check tyre sidewall height and diameter change.
Results follow the rules shown above and are for guidance. For formal use, check them against your form, contract or the official source.