JSON
JSON stands for JavaScript Object Notation and is a text-based format for exchanging structured data. It supports objects with string keys, arrays, strings, numbers, Boolean values, and null. Although its notation derives from JavaScript, JSON is language-independent and supported by many programming languages.
JSON is widely used in web APIs, configuration files, and data interfaces. It has no native comments, date, or binary data types; such values require agreed representations. JSON also does not automatically define the meaning or validity of data. Applications should validate structures and values, account for character encoding, and never treat untrusted data as executable code.
- Text-based, language-independent data format
- Objects, arrays, and primitive data types
- Commonly used for APIs and configuration
- No native date or binary types
- Validate incoming data structures
Frequently asked questions
JSON is a text-based, language-independent format for exchanging structured data.
No. JSON is a data format with limited syntax, whereas JavaScript is a programming language.