Online JSON validator

Validate your JSON online and get detailed error messages

JSON is valid!

What is JSON?

JSON (JavaScript Object Notation) is a lightweight data interchange format. It is easy to read and write and easy to parse and generate using code.
It is based on a subset of the JavaScript programming language.

JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of many languages like C, C++, C#, Java or JavaScript. These properties make JSON an ideal data-interchange language.

JSON syntax

JSON is built on two universal data structures:

  • A collection of unordered name/value pairs: usually called in other languages, object, record, struct, dictionary, hash table, keyed list, or associative array.
  • An ordered list of values: called in other languages, array, vector, list, or sequence.

The JSON syntax is derived from the JavaScript object notation syntax:

  • Curly braces hold objects name/value pairs {...}
  • Square brackets hold arrays [...]
  • Object name/value pairs are separated by a colon"name": "value"
  • Object and array members are separated by commas [1,2,3]
  • Object names are enclosed in double quotes "name"
  • Object names must be unique within the object
  • String values must be enclosed in double quotes
  • Values can be one of the following data types:
    • a string "value"
    • a number-5.56e7
    • an object{...}
    • an array [...]
    • a boolean true orfalse
    • nullnull

Commons errors

Some common errors that can be found in JSON files:

  • Missing comma between two elements.
  • Missing quotes around keys or string values.
  • Objects and arrays members must be separated by a comma, but trailing commas are not allowed after the last member: [1,2,3,] should be [1,2,3]
  • Comments are not allowed.