Format and beautify JSON data for readability and debugging
Common user profile structure with nested objects
Typical REST API response with pagination
Application configuration with multiple environments
Shopping cart with products and pricing
Event structure with dates and participants
Complex nested structure with arrays and objects
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.
Data Type | Description | Example | Notes |
---|---|---|---|
String | Text enclosed in double quotes | "Hello World" | Must use double quotes, not single |
Number | Integer or floating point | 42, 3.14, -10 | No leading zeros allowed |
Boolean | True or false value | true, false | Lowercase only |
Null | Empty value | null | Represents no value |
Object | Collection of key/value pairs | {"name": "John"} | Keys must be strings |
Array | Ordered list of values | [1, 2, 3] | Can contain mixed types |
Format | Human Readable | File Size | Parse Speed | Use Case |
---|---|---|---|---|
JSON | Good | Medium | Fast | Web APIs, Config files |
XML | Good | Large | Slow | Enterprise systems, SOAP |
YAML | Excellent | Medium | Medium | Configuration files |
CSV | Good | Small | Fast | Tabular data |
Binary | Poor | Small | Very Fast | High-performance apps |