☼
⌃
☰

Javascript Object Notation

Table of Contents

Javascript Object Notation

Overview

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format. It's easy for humans to read and write, and easy for machines to parse and generate. JSON is built on two structures:

  • Objects: Unordered collections of key-value pairs.
  • Arrays: Ordered lists of values.

Key Features

  • Readability: Human-readable format for easy inspection.
  • Language Independence: Can be used with various programming languages.
  • Efficiency: Compact and efficient for data transmission.
  • Data Structures: Supports objects and arrays for complex data representation.
  • Widely Adopted: Used in web applications, APIs, and data storage.

Use Cases

Example

JSON
{
    "name": "John Doe",
    "age": 30,
    "city": "New York",
    "hobbies": ["reading", "coding", "hiking"]
}