The best JSON syntax Tutorial In 2024, In this tutorial you can learn JSON syntax rules,JSON name / value pairs,JSON value,JSON object,JSON array,JSON using JavaScript syntax,Examples,JSON file,
JSON syntax is a subset of JavaScript syntax.
JavaScript Object Notation JSON syntax is a subset of the French and France.
Writing JSON data format is: name / value pairs.
Name / value pairs include field names (in double quotes), followed by writing a colon, then the value:
It is easy to understand, this is equivalent to the JavaScript statement:
JSON values can be:
JSON object written in curly braces:
Objects can contain multiple name / value pairs:
It is also easy to understand, and this JavaScript statement is equivalent to:
JSON array written in brackets:
Array can contain multiple objects:
In the above example, the object "employees" is an array containing three objects. Each object on behalf of a person (name and surname) records.
Because JSON using JavaScript syntax, so no additional software is able to handle JavaScript in JSON.
Through JavaScript, you can create an array object and assign like this:
JavaScript can access an array of objects like the first:
Back reads:
You can modify the data like this:
In the following sections, you will learn how to convert text to JSON JavaScript object.