what is json ?
- JSON stands for JavaScript Object Notation.
- JSON is a plain text format for storing and transporting data.
- JSON is similar to the syntax for creating JavaScript objects.
- JSON is used to send, receive and store data. Example: {"name":"Dharshini", "age":21, "car":null} why json ?
JSON is used because it's a lightweight, human-readable, and language-independent data format ideal for exchanging structured data between servers and web/mobile applications, as well as for configuration files and storing data in NoSQL databases.
syntax:
JSON syntax is derived from JavaScript object notation syntax:
- Data is in name/value pairs
- Data is separated by commas
- Curly braces hold objects
- Square brackets hold arrays
Top comments (0)