JSON Formatter & Validator

Beautifies and debugs JSON data

Add to favorite
Indentation level:

What this tool can

This tool to format JSON string by changing the indentation level, and find out syntax error.

What is JSON?

JSON is an abbreviation of Javascript Object Notation, this is a type of data that follows certain rules that most programming languages today can read. You can save it into a file or into a record inside a database easily. JSON has a simple format, easy to use and query than XML, so its applicability is now very popular.

    Some characteristics of JSON:
  • Each data information will have 2 parts: key and value
  • JSON strings are enclosed by braces {}
  • JSON keys and values must be enclosed in double quotes, if you put them in single quotes, this is not a standard JSON string.
  • If several data presents, use commas as separators.
  • Key values in JSON can be string, number, empty (null), array, or object.
  • File json can be saved with any extension, however it is usually saved under the extension .json or .js

    Common Errors :
  • Expecting 'STRING' - You probably have an extra comma at the end of your collection.
  • Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[' - You probably have an extra comma at the end of your list.
  • Enclosing your collection keys in quotes.

Useful for

Developer want to check syntax error of JSON data, or make that more beautiful for conveniently read and edit.

related tools