What is JSON?

JSON (JavaScript Object Notation) is a text format for data: objects in curly braces with keys and values, and lists in square brackets. Web APIs, configuration files and many apps use it because it's easy to read and every programming language can parse it. Its rules are strict, though, so one missing quote or an extra comma breaks the whole file.

Tool description

Paste your JSON into the editor and the result shows right away whether it's valid. When it isn't, you get the line and column of the first problem and a plain explanation of what's wrong there, such as a missing comma or a key without double quotes. The editor highlights JSON syntax, which makes a stray quote easier to spot.

The check is as strict as JavaScript's JSON.parse, so comments and trailing commas count as errors.

Features

  • Checks your JSON as you type
  • Points to the line and column of the first error
  • Explains each error in plain words

Common mistakes

  • A comma after the last item in an object or a list
  • Keys or strings in single quotes instead of double quotes
  • Keys without quotes, as in JavaScript objects
  • Comments, which JSON doesn't allow
  • Line breaks or tabs inside a string, which have to be written as \n or \t