What is JSON Validator & Linter?
JSON Validator & Linter checks that JSON parses and pretty-prints it with two-space indentation. If it is invalid, the error tells you what went wrong.
How It Works
- Enter JSON text in the input fields on this page.
- Press the button to run JSON Validator & Linter.
- Read formatted JSON or the parse error in the result area, and copy or download it.
Common Uses
- Finding a missing comma or quote.
- Pretty-printing an API response.
- Verifying a config before deploying.
Good to Know
JSON requires double quotes around keys and strings, and no trailing commas.
In more detail
Paste JSON into the box and press the button. If it is valid, the tool prints it again with two-space indentation. If it is not, it reports an error.
Worked example
The single line {"name":"Pen","tags":["a","b"],"price":1.5} was valid and was printed on nine lines, with each array item on its own line.
Limits
It follows strict JSON: keys and strings need double quotes, comments and trailing commas are not allowed. Very large documents may be slow in the browser. It checks syntax only, not whether the data matches your own schema.
Frequently Asked Questions
Why is my JSON reported as invalid?
Common causes are single quotes, a trailing comma, a missing quote around a key, or a comment.
Does it check a JSON schema?
No. It checks that the text is valid JSON.
Is my JSON uploaded?
No. It is checked in your browser.
What does JSON Validator & Linter do?
JSON Validator & Linter checks that JSON parses and pretty-prints it with two-space indentation. If it is invalid, the error tells you what went wrong.
What do I need to enter in JSON Validator & Linter?
JSON text.
Is my data private in JSON Validator & Linter?
JSON Validator & Linter runs in your browser, so what you enter is not uploaded to MyToolDock.
Is MyToolDock JSON Validator & Linter free to use?
Yes, MyToolDock JSON Validator & Linter is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.
Where can I learn more about JSON Validator & Linter and related workflows?
MyToolDock publishes written guides on the topic: Why You Need JSON Formatting and Validation; YAML to JSON: Why Developers Transition Formats. Each guide links back to the tools it covers.