JSON Validator

Validates a JSON string against RFC 4627 (The application/json media type for JavaScript Object Notation) and against the JavaScript language specification. You can configure the validator to be lenient or strict.

There is no limit to the file you can upload but be patient with big or huge files.

If you want to learn more about JSON, jump to the JSON Explained section of this page.

Option 1:Copy-paste your JSON string here

Option 2:Or type in the URL to your JSON file

Note:

The default validation occurs against the strict RFC 4627 specification which requires for names / keys to be in double quotes. E.g.: {example:"value"} is invalid but {"example":"value"} is valid. Use the following options for a lenient validator.

JSON Explained

What is JSON?

JSON stands for "JavaScript Object Notation" and is pronounced "Jason" (like in the Friday the 13th movies). It's meant to be a human-readable and compact solution to represent a complex data structure and facilitate data-interchange between systems.

Why use JSON?

There are tons of reasons why you would want to use JSON:

It's human readable... if it's properly formatted :-P

It's compact because it doesn't use a full markup structure, unlike XML

It's easy to parse, especially in JavaScript

A gazillion JSON libraries are available for most programming languagues

JSON in JavaScript

Because JSON derives from JavaScript, you can parse a JSON string simply by invoking the eval() function. The JSON string needs to be wrapped by parenthesis, else it will not work! This is the #1 problem when programmers first start to manipulate JSON strings.

Programming languages and JSON

The website JSON.org maintains an extensive list of JSON libraries and they are categorized in programming languages. Unfortunately, there are so many libraries out there that it's very hard to chose one! Note that VERY few JSON libraries have strict adherence to the JSON specification and this can lead to parsing problems between systems.