0% found this document useful (0 votes)
64 views

What Is JSON

JSON (JavaScript Object Notation) is a lightweight format for storing and transporting data between machines. It uses human-readable text to transmit data objects consisting of attribute-value pairs and arrays. Developers prefer JSON because it is simple to build and debug, has a low payload size, and is supported across many programming languages. An example JSON object contains name and age keys with string and number values, while an array contains multiple such objects within square brackets.

Uploaded by

Musammat Samina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views

What Is JSON

JSON (JavaScript Object Notation) is a lightweight format for storing and transporting data between machines. It uses human-readable text to transmit data objects consisting of attribute-value pairs and arrays. Developers prefer JSON because it is simple to build and debug, has a low payload size, and is supported across many programming languages. An example JSON object contains name and age keys with string and number values, while an array contains multiple such objects within square brackets.

Uploaded by

Musammat Samina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

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

You might also like