Reference Knowledge Base

What is JSON? The Complete Definition & Guide

What JSON (JavaScript Object Notation) is: the definition, RFC 8259 syntax rules, all 6 data types, and real-world use in web APIs and config files.

JSON (JavaScript Object Notation) is a lightweight, text-based data interchange format defined by RFC 8259 and ECMA-404. It represents data as key-value pairs, arrays, and six primitive types: strings, numbers, booleans, null, objects, and arrays.

JSON Definition

JSON stands for JavaScript Object Notation. It is a lightweight, text-based, language-independent data interchange format defined by IETF RFC 8259 and ECMA-404.

Despite its name, JSON is not limited to JavaScript — it is supported natively in every major programming language: Python, Java, C#, Go, Rust, PHP, Ruby, Swift, and more.

The 6 JSON Value Types

  • Object ({ }): Unordered collection of key-value pairs. Keys must be strings.
  • Array ([ ]): Ordered list of any JSON values.
  • String: Double-quoted Unicode text.
  • Number: Integer or floating-point. No NaN or Infinity.
  • Boolean: Strictly lowercase true or false.
  • Null: The absence of a value, written as lowercase null.

Brief History

JSON was created by Douglas Crockford in the early 2000s and first specified in 2006 (RFC 4627). The current standard is RFC 8259 (December 2017).

Common Use Cases

  • REST API request and response payloads
  • Configuration files (package.json, tsconfig.json, appsettings.json)
  • NoSQL document storage (MongoDB, Firestore, DynamoDB)
  • Web browser localStorage and sessionStorage
  • Data exchange between microservices
json
// A valid JSON document demonstrating all 6 types:
{
  "name": "JSON2X",          // string
  "version": 2.8,            // number
  "isActive": true,          // boolean
  "deletedAt": null,         // null
  "tags": ["json", "tools"], // array
  "meta": {                  // object
    "author": "JSON2X Team",
    "license": "MIT"
  }
}

Try the free JSON Validator

Runs entirely in your browser — no upload, no signup, and your data never leaves your device.

Open JSON Validator

Frequently Asked Questions

What does JSON stand for?

JSON stands for JavaScript Object Notation.

What is JSON used for?

JSON is used primarily for data interchange between web clients and servers via REST APIs, for application configuration files, and for storing documents in NoSQL databases.

Is JSON the same as JavaScript?

No. JSON is a data format inspired by JavaScript object literal syntax, but it is a separate standard. JSON does not support functions, comments, undefined, NaN, or Infinity.

Which RFC defines JSON?

JSON is defined by IETF RFC 8259 (the current standard) and ISO/IEC 21778. The original specification was RFC 4627.

Related JSON Topics & Reference Articles