JSON (JavaScript Object Notation)
JSON is a lightweight, text-based format for storing and exchanging data using key-value pairs and lists. It is the most common format for sending data between web apps and APIs.
General Programming
JSON is easy for both humans to read and machines to parse. It supports strings, numbers, booleans, arrays, objects, and null, and is language-independent despite its JavaScript origins.
Examples
JSON
{
"name": "Ada",
"age": 36,
"languages": ["Python", "C"]
}Python
import json
data = json.loads('{"name": "Ada"}')
print(data["name"])Output:
Ada