JSON requires double quotes around property names and string values.
Privacy: This tool parses JSON in your browser. The input is not sent to the PHP server for validation. For sensitive information, follow your organisation's data-handling rules.
How to validate JSON online
Use the validator to check the syntax of a JSON object, array or value before using it in your application.
-
01
Paste your JSON data
Copy JSON from an API response, a configuration file or your code editor and paste it into the input box.
-
02
Run the validation
Select Validate JSON. The browser checks whether the text can be parsed according to standard JSON syntax.
-
03
Review and use the result
If the JSON is valid, inspect the readable output. If it is invalid, review the error message and correct the input before checking again.
Tip: Check commas, quotation marks, brackets and values first when JSON validation fails.
What is JSON validation?
JSON stands for JavaScript Object Notation. It is a text-based format used to represent structured data. Applications commonly use JSON to exchange data through APIs and to store configuration settings.
A JSON validator checks whether the input follows JSON syntax. Valid syntax does not automatically mean that the data matches your application's requirements or a particular API schema.
{
"name": "PrimeProblem",
"active": true,
"tools": [
"JSON Validator",
"JSON Formatter"
],
"version": 1
}
Common JSON syntax mistakes
- Using single quotes instead of double quotes.
- Leaving a comma after the final array item or property.
- Forgetting a closing brace or bracket.
- Writing an unquoted property name.
- Using values such as
undefinedorNaN, which are not valid JSON values.
Frequently asked questions
What does a JSON validator do?
A JSON validator checks whether input text follows standard JSON syntax. It can help identify parsing errors before the data is used by an application.
How do I check if JSON is valid?
Paste your JSON into the input area and select Validate JSON. The tool attempts to parse the input and displays a success message or a parsing error.
Why is my JSON invalid?
Frequent causes include missing commas, unmatched brackets, single-quoted strings, unquoted property names, trailing commas and unsupported values.
Does valid JSON mean my API data is correct?
Not necessarily. Syntax validation confirms that the text follows JSON grammar. It does not verify that required fields, data types or business rules match your API or application schema.
Can JSON contain comments?
Standard JSON does not support comments. Remove comments from JSON text before validating it. Some configuration formats extend JSON, but they are not strict standard JSON.
Can I format JSON after validating it?
Yes. After entering valid JSON, select Format JSON to display it with indentation and line breaks. Select Minify JSON to remove unnecessary whitespace.
Is my JSON uploaded to a server?
The validation and formatting functions on this page run in your browser and do not submit the JSON input to the PHP server for processing.
Is this JSON validator free?
Yes. You can use this page to validate JSON without creating an account.