JSON is a human-readable text-based format for data exchange, widely used in web applications.
Notes
Douglas Crockford
JSON is built on two structures: A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array. An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write and easy for machines to parse and generate.
JSON is derived from JavaScript but is language-independent. It is used extensively in web applications for transmitting data between a server and a client. Its simplicity and human-readable format have contributed to its widespread adoption. JSON supports data structures like objects (key-value pairs) and arrays (ordered lists), making it versatile for representing various types of data.
TakeAways
- 📌 jjjN is a text-based data format.
- Easy to read and write for humans.
- Widely used in web applications.
- 💡 JSON supports objects (key-value pairs) and arrays (ordered lists).
- 🔍 JSON data is represented as strings enclosed in double quotes.
Process
- 📝 Create a JSON object with key-value pairs.
- 📤 Send the JSON data from a server to a client (or vice versa).
- 📥 Parse the JSON data on the receiving end to extract the information.
Thoughts
- 📜 Readability: JSON’s text-based format makes it easy to read and understand.
- 🌐 Interoperability: JSON is language-independent and supported by most programming languages.
- 💻 Web Applications: JSON is widely used for data exchange in web applications.