What is JSON?
JSON (JavaScript Object Notation) is a lightweight, text-based data interchange format designed to be human-readable and machine-parseable.
JSON Data Types
- String:
"name": "Sunloop" - Number:
"age": 30 - Boolean:
"active": true - Array:
"items": [1, 2, 3] - Object:
"address": { "city": "NY" } - Null:
"data": null
Common Syntax Mistakes
- Using single quotes (
') instead of double quotes ("). - Trailing commas after the last key-value pair in an object or array.
Clean, format, and validate your JSON data in seconds using our JSON Formatter & Validator.