Paste JSON to see it formatted or to find the error.
Valid JSON
88 B{
"name": "VulCode",
"active": true,
"services": [
"vulbio",
"flaem"
]
}Syntax error
How to use it in three steps
Step by step, with this page's example.
- 01
Paste the JSON.
- 02
Choose pretty-print or minify.
- 03
Copy the result, or fix the error at the given line and column.
What you enter
{"a":1,"b":[1,2,}
What you get
Unexpected token } in JSON
Line 1, column 17 Questions
- What is JSON?
- It is a text format for data built from curly braces, quoted keys and values, used by most APIs. Its syntax is strict: no comments and no comma after the last item.
- How do I check whether JSON is valid?
- Paste it into the tool. Valid JSON gets formatted, and invalid JSON shows an error message with the line and column.
- Can I put comments in JSON?
- No. The JSON standard does not allow them, just like single quotes instead of double quotes. Comments only work in related formats such as JSONC.
- How do I minify JSON to one line?
- Paste the JSON and choose minify instead of pretty-print. The tool removes the extra spaces and line breaks.
- Does my JSON go anywhere?
- No. Parsing happens in your browser and nothing is sent to a server.
- Why is a trailing comma an error?
- The JSON spec does not allow a comma after the last item, even though JavaScript accepts it. It is the most common mistake in hand-written files.