HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
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.