in/hassanabdo
What
is
JSON?
by Paul Moyse
in/hassanabdo
What is JSON?
JSON stands for JavaScript Object Notation.
A AS K
O R
JSON is a lightweight format for storing
A AS K
and transporting data.
OR S K
R A A
JSON becomes a medium of communication
O
A
betweenAS K
the two machines.
OR
in/hassanabdo
You want to send data to How will the recipient
another machine? machine understand it?
AASK
OR
Convert your
AASK
OR data into JSON.
K
Other machines can
S
ORAA
simply parse it to
AASK understand
OR
in/hassanabdo
Key Points When Encoding Data to JSON
Key/value pairs.
Each pair is separated by commas.
A A SK
OR objects.
Curly braces encapsulate
AA SK
Square brackets encapsulate arrays.
R
OArrays are called JSON Arrays. SK
OR AA
AA SK
O R
JSON arrays hold JSON objects.
A JSON object can contain another JSON object,
and This is called Nested JSON Objects.
in/hassanabdo
Example of JSON Object
AASK
{ OR
AASK
"name:" XYZ,
OR
"age:" 32
}
AASK
OR
AASK
OR
in/hassanabdo
Example of JSON Array
[
{
AASK
"name:" XYZ, OR
AASK
OR
"age:" 32
},
{
AASK
"name:" ABC, OR
ASK
"age:" 35
A
OR
}
]
in/hassanabdo
Why Do Developers Prefer JSON?
AA S K
OR
Simple to build and debug.
AA S K
ORLow light-weight payload size.
AA S
Acceptable across all modern K high-level
OR
programming languages
A AS K
OR
in/hassanabdo
H e ad o ve r to
r o f il e
www.oraask.com te a P
Crea
AASK ASK
OR ORA
AASK
OR
AASK
AASK OR
OR
AASK
AS K OR
ORA age
L a n gu
r n a new A sk
L e a aQ
u est
io n
in/hassanabdo
more
e for
m
Follow
AASK ASK
OR ORA
Do you prefer JSON?
SK
Let me know in the Comment below
AA
OR
AASK
AASK OR
OR
AASK
ASK OR
Ot tRhisA
eck ou
ch