What is JSON and its data type Part | 4

Опубликовано: 15 Март 2026
на канале: Syed Ali
617
10

Here we learn what is JSON & JSON DATA types:


JSON(JavaScript Object Notation) is one of the most popular data transition formats. It is a text-based and lightweight format for data transactions. JSON format was first computed by Douglas Crockford.

JSON Syntax: Let us understand JSON
JSON OBJECT Structure:

{
"empname":"John",
"city":"Mumbai"
}

And also, we write this way:
{
"Employee": {
"empname": "John",
"city": "Mumbai"
}
}


JSON OBJECTS ARE IDENTIFIED BY {}
JSON objects have a property like Movie year, movie director, and movie sponsor
Properties can have values
Each property and it's value us separated from the next property by comma


JSON Data Types:
Data Types Example
String {"empname":"John"}
Number {"Age":30}
Boolean {"visiablity":true}
null/empty {"salary":null}
object {"empname":"John","city";"mumbai"}
Array {"empid":[101,102,103,104]}

JSON Array Example:
{
"Employee": [
{
"empname": "John",
"city": "Mumbai"
},
{
"empname": "Ane",
"city": "Delhi"
},
{
"empname": "Ben",
"city": "panjab"
}
]
}



JSON Strings can contain the following backslash-escaped characters:

\" – Double quote
\\ – Backslash
\/ – Forward slash
\b – Backspace
\f – Form feed
\n – Newline
\r – Carriage return
\t – Tab
\u – Trailed by four hex digits


JSON Viewer:
http://jsonviewer.stack.hu/

JSON beautify:
https://codebeautify.org/jsonviewer