JSON (JavaScript Object Notation)
JSON is a lightweight data interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is the dominant format for web APIs, configuration files, and data storage in modern applications.
MIME Type
application/json
Type
Text
Compression
Lossless
Advantages
- + Human-readable and writable with minimal syntax
- + Native parsing in every programming language
- + Dominant format for REST APIs and web services
- + Lightweight — less verbose than XML
Disadvantages
- − No comment syntax — cannot annotate configuration files
- − No native date, binary, or schema types
- − Trailing commas cause parse errors in strict parsers
When to Use .JSON
Use JSON for API responses, configuration files, data exchange between services, and any structured data that needs to be human-readable.
Technical Details
JSON supports six data types: strings, numbers, booleans, null, arrays, and objects (key-value maps). It uses UTF-8 encoding and has no support for comments, dates, or binary data natively.
History
Douglas Crockford popularized JSON in the early 2000s, deriving it from JavaScript object literal syntax. It was standardized as ECMA-404 in 2013 and RFC 8259 in 2017, becoming the universal API data format.
Convert from .JSON
Convert to .JSON
Related Formats
Related Terms
Learn More
File Format Conversion: A Complete Guide
Converting files between formats is a daily task for professionals across every industry. This comprehensive guide covers document, image, audio, …
How to Generate Strong Random Passwords
Password generation requires cryptographic randomness and careful character selection. This guide covers the principles behind strong password generation, entropy calculation, …
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
Meta Tags for SEO: Title, Description, and Open Graph
Meta tags control how your pages appear in search results and social media shares. This guide covers the essential meta …
Text Encoding Explained: UTF-8, ASCII, and Beyond
Text encoding determines how characters are stored as bytes. Understanding UTF-8, ASCII, and other encodings prevents garbled text, mojibake, and …
CSV vs JSON vs XML: Data Exchange Formats Compared
Data exchange formats serve different needs. CSV excels at tabular data, JSON dominates web APIs, and XML powers enterprise integrations. …