SlideShare a Scribd company logo
• JSON stands for JavaScript Object Notation
• JSON is a text format for storing and transporting data
• JSON is "self-describing" and easy to understand
• JSON is a lightweight Data-Interchange Format.
• JSON Is Programming Language Independent
• Subset of Javascript Object literal
• easy to read
• Minimum bandwidth is needed to interchange data
• Supports in all browsers
JSON SYNTAX
{key:value}
JSON RULES
• Must create data within curly brackets {}
• {json data}
• Data must be written with key-value pairs
• {key: value}
• Key and value must be separated by colon :
• {“name” : “ram”}
• key should be double-quoted, if the value is a string then it must be
double-quoted
• {“name” : “sita”}
• {“age” : 21}
• When multiple data are used then it should be separated by a comma
• {“name” : “ram” , {“age” : 21}
• When array data are used then it should be represented in square
brackets[]
• {“marks” : [12,61,99]}
• curly brackets are used to store/hold/represent objects
JSON as a document
• JSON data can be created in an external file with an extension as.json
JSON Datatypes
 Number: Integer, Floating point number
Eg: {"regno":101, "cgpa":9.1}
 String: Text with double quotes
Eg:{"name": "John"}
 Boolean: true or false
Eg: {"sale": true}
 Array: Square brackets[]
Eg: { "employees":["John", "Anna", "Peter"] }
 Object: curly brackets, can have objects within objects.
Eg: { "employee":{"name": "John", "age":30} }
 Null: null
Eg: {“middle name": null}
 Number, String, Boolean Values(Literals) data types
Eg1:{ "brand": "Crocs", "color": "pink", "size": 9, "hasLaces": false }
Eg2: {
"brand": "Crocs",
"color": "pink",
"size": 9,
"hasLaces": false
}
 Arrays
Eg1:{"fruits":
["apple","orange","mango","pineap
ple","grapes"]}
Eg2: {"scores":[98,23,78,89,97]}
 Objects
{
"book1":
{
"title":"Life",
"author":"Luther",
"stock": 18,
"price":2000
}
}
Nested JSON Objects
{
"students": {
"cse":{
"URK20CS1001" : {"name":"John","cgpa":8.7},
"URK20CS1002" : {"name":"Grace","cgpa":7.7},
"URK20CS1003" : {"name":"Lincy","cgpa":9.7}
}
},
"faculty":{
"cse":{
"678":{"name":"Ashok", "gender":"male","place":"Chennai"},
"857":{"name":"Arun","gender":"male","place":"Coimbatore"}
}
}
Null
{
"person1":{
“first name":"John",
“middle name":null,
“last name": “William"
},
"person2":{
“first name":"David",
“Middlename":"Wilson",
“last name": null
}
<script>
var json= {
"array": [1,2,3],
"boolean": true,
"color": "gold",
"status": null,
"number": 123,
"object": {"a": "b", "c": "d"},
"string": "Hello World"
}
</script>
Example:
<script>
var user = new Object();
user.name="Ram";
user.age=23;
document.write("His Name is " +user.name + " <br>And his age is "
+user.age)
var user={
name:"SAM",
age:24
}
document.write("<br> His Name is " +user.name + " <br>And his age is "
+user.age)
</script>
JAVASCRIPT
JSON

More Related Content

Similar to 1 Json Intro and datatype PRESENTATION.pptx (20)

PPTX
JSON-(JavaScript Object Notation)
Skillwise Group
 
PPT
java script json
chauhankapil
 
PDF
Json demo
Sreeni I
 
PPTX
JSON - JavaScript Object Notation
Sothearin Ren
 
PPTX
Json
Steve Fort
 
PDF
Dealing with JSON files in python with illustrations
Kiran Kumaraswamy
 
PDF
Writing Domain Specific Languages with JSON Schema
Yos Riady
 
PPTX
Working with JSON
Lovely Professional University
 
PPTX
Introduction to JavaScript Object Notation(JSON)
gaikwaddavid2022
 
PPTX
Oracle Database - JSON and the In-Memory Database
Marco Gralike
 
PDF
UKOUG Tech14 - Getting Started With JSON in the Database
Marco Gralike
 
PDF
Intro to JSON
George McKinney
 
PPTX
JSON.pptx
MaheshHirulkar1
 
PDF
Json the-x-in-ajax1588
Ramamohan Chokkam
 
PDF
JSON in JavaScript
Bishrul Haq
 
PDF
Basics of JSON (JavaScript Object Notation) with examples
Sanjeev Kumar Jaiswal
 
JSON-(JavaScript Object Notation)
Skillwise Group
 
java script json
chauhankapil
 
Json demo
Sreeni I
 
JSON - JavaScript Object Notation
Sothearin Ren
 
Dealing with JSON files in python with illustrations
Kiran Kumaraswamy
 
Writing Domain Specific Languages with JSON Schema
Yos Riady
 
Introduction to JavaScript Object Notation(JSON)
gaikwaddavid2022
 
Oracle Database - JSON and the In-Memory Database
Marco Gralike
 
UKOUG Tech14 - Getting Started With JSON in the Database
Marco Gralike
 
Intro to JSON
George McKinney
 
JSON.pptx
MaheshHirulkar1
 
Json the-x-in-ajax1588
Ramamohan Chokkam
 
JSON in JavaScript
Bishrul Haq
 
Basics of JSON (JavaScript Object Notation) with examples
Sanjeev Kumar Jaiswal
 

More from angelinjeba6 (20)

PPTX
NLP-Components NLP-ComponentsNLP-Components.pptx
angelinjeba6
 
PPTX
REVIEW_Practicum1_NLP REVIEW_Practicum1_NLP.pptx
angelinjeba6
 
PPTX
STUDENT ACTIVITIES_NLP STUDENT ACTIVITIES_NLP.pptx
angelinjeba6
 
PPTX
AI-in-Cybersecurity AI-in-Cybersecurity.pptx
angelinjeba6
 
PPTX
Applying-AIAI-in-CybersecurityAI-in-Cybersecurity-in-Cybersecurity.pptx
angelinjeba6
 
PPTX
Exercise no: 6 java script fundamentals.pptx
angelinjeba6
 
PPTX
1 Intro of web technology and sciences .pptx
angelinjeba6
 
PPT
rules classifier in machine learning .ppt
angelinjeba6
 
PPTX
21. Regression Tree in machine learning.pptx
angelinjeba6
 
PPTX
Loss function in machine learning .pptx
angelinjeba6
 
PPTX
Module 1 Taxonomy of Machine L(1).pptx
angelinjeba6
 
PPTX
decision tree DECISION TREE IN MACHINE .pptx
angelinjeba6
 
PPTX
K means ALGORITHM IN MACHINE LEARNING.pptx
angelinjeba6
 
PPTX
Support vector machine_new SVM presentation.pptx
angelinjeba6
 
PPTX
INTELL ACTUAL PROPERTY. INTELL ACTUAL PROPERTY.pptx
angelinjeba6
 
PPTX
Multiple Linear Regressionnnnnnnnnnn.pptx
angelinjeba6
 
PPTX
normalisation jdsuhduswwhdusw cdscsacasc.pptx
angelinjeba6
 
PPT
311----introduction tomachinelearning.ppt
angelinjeba6
 
PPTX
Dynamic and Embedded SQL for db practices.pptx
angelinjeba6
 
PPT
artificial engineering the future of computing
angelinjeba6
 
NLP-Components NLP-ComponentsNLP-Components.pptx
angelinjeba6
 
REVIEW_Practicum1_NLP REVIEW_Practicum1_NLP.pptx
angelinjeba6
 
STUDENT ACTIVITIES_NLP STUDENT ACTIVITIES_NLP.pptx
angelinjeba6
 
AI-in-Cybersecurity AI-in-Cybersecurity.pptx
angelinjeba6
 
Applying-AIAI-in-CybersecurityAI-in-Cybersecurity-in-Cybersecurity.pptx
angelinjeba6
 
Exercise no: 6 java script fundamentals.pptx
angelinjeba6
 
1 Intro of web technology and sciences .pptx
angelinjeba6
 
rules classifier in machine learning .ppt
angelinjeba6
 
21. Regression Tree in machine learning.pptx
angelinjeba6
 
Loss function in machine learning .pptx
angelinjeba6
 
Module 1 Taxonomy of Machine L(1).pptx
angelinjeba6
 
decision tree DECISION TREE IN MACHINE .pptx
angelinjeba6
 
K means ALGORITHM IN MACHINE LEARNING.pptx
angelinjeba6
 
Support vector machine_new SVM presentation.pptx
angelinjeba6
 
INTELL ACTUAL PROPERTY. INTELL ACTUAL PROPERTY.pptx
angelinjeba6
 
Multiple Linear Regressionnnnnnnnnnn.pptx
angelinjeba6
 
normalisation jdsuhduswwhdusw cdscsacasc.pptx
angelinjeba6
 
311----introduction tomachinelearning.ppt
angelinjeba6
 
Dynamic and Embedded SQL for db practices.pptx
angelinjeba6
 
artificial engineering the future of computing
angelinjeba6
 
Ad

Recently uploaded (20)

PDF
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays
 
PDF
Key_Statistical_Techniques_in_Analytics_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
McKinsey - Global Energy Perspective 2023_11.pdf
niyudha
 
PPTX
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
PDF
WISE main accomplishments for ISQOLS award July 2025.pdf
StatsCommunications
 
PDF
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
PPT
From Vision to Reality: The Digital India Revolution
Harsh Bharvadiya
 
PPTX
Introduction to computer chapter one 2017.pptx
mensunmarley
 
PDF
717629748-Databricks-Certified-Data-Engineer-Professional-Dumps-by-Ball-21-03...
pedelli41
 
PPTX
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
PPTX
Introduction to Data Analytics and Data Science
KavithaCIT
 
PDF
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
PPTX
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
PPTX
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
PPTX
UVA-Ortho-PPT-Final-1.pptx Data analytics relevant to the top
chinnusindhu1
 
PPTX
The whitetiger novel review for collegeassignment.pptx
DhruvPatel754154
 
PDF
blockchain123456789012345678901234567890
tanvikhunt1003
 
PPTX
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
PDF
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays
 
PPTX
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
apidays Munich 2025 - Developer Portals, API Catalogs, and Marketplaces, Miri...
apidays
 
Key_Statistical_Techniques_in_Analytics_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
McKinsey - Global Energy Perspective 2023_11.pdf
niyudha
 
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
WISE main accomplishments for ISQOLS award July 2025.pdf
StatsCommunications
 
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
From Vision to Reality: The Digital India Revolution
Harsh Bharvadiya
 
Introduction to computer chapter one 2017.pptx
mensunmarley
 
717629748-Databricks-Certified-Data-Engineer-Professional-Dumps-by-Ball-21-03...
pedelli41
 
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
Introduction to Data Analytics and Data Science
KavithaCIT
 
Blue Futuristic Cyber Security Presentation.pdf
tanvikhunt1003
 
White Blue Simple Modern Enhancing Sales Strategy Presentation_20250724_21093...
RamNeymarjr
 
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
UVA-Ortho-PPT-Final-1.pptx Data analytics relevant to the top
chinnusindhu1
 
The whitetiger novel review for collegeassignment.pptx
DhruvPatel754154
 
blockchain123456789012345678901234567890
tanvikhunt1003
 
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
apidays Munich 2025 - The Double Life of the API Product Manager, Emmanuel Pa...
apidays
 
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
Ad

1 Json Intro and datatype PRESENTATION.pptx

  • 1. • JSON stands for JavaScript Object Notation • JSON is a text format for storing and transporting data • JSON is "self-describing" and easy to understand • JSON is a lightweight Data-Interchange Format. • JSON Is Programming Language Independent • Subset of Javascript Object literal • easy to read • Minimum bandwidth is needed to interchange data • Supports in all browsers JSON SYNTAX {key:value}
  • 2. JSON RULES • Must create data within curly brackets {} • {json data} • Data must be written with key-value pairs • {key: value} • Key and value must be separated by colon : • {“name” : “ram”} • key should be double-quoted, if the value is a string then it must be double-quoted • {“name” : “sita”} • {“age” : 21}
  • 3. • When multiple data are used then it should be separated by a comma • {“name” : “ram” , {“age” : 21} • When array data are used then it should be represented in square brackets[] • {“marks” : [12,61,99]} • curly brackets are used to store/hold/represent objects JSON as a document • JSON data can be created in an external file with an extension as.json
  • 4. JSON Datatypes  Number: Integer, Floating point number Eg: {"regno":101, "cgpa":9.1}  String: Text with double quotes Eg:{"name": "John"}  Boolean: true or false Eg: {"sale": true}  Array: Square brackets[] Eg: { "employees":["John", "Anna", "Peter"] }  Object: curly brackets, can have objects within objects. Eg: { "employee":{"name": "John", "age":30} }  Null: null Eg: {“middle name": null}
  • 5.  Number, String, Boolean Values(Literals) data types Eg1:{ "brand": "Crocs", "color": "pink", "size": 9, "hasLaces": false } Eg2: { "brand": "Crocs", "color": "pink", "size": 9, "hasLaces": false }  Arrays Eg1:{"fruits": ["apple","orange","mango","pineap ple","grapes"]} Eg2: {"scores":[98,23,78,89,97]}
  • 7. Nested JSON Objects { "students": { "cse":{ "URK20CS1001" : {"name":"John","cgpa":8.7}, "URK20CS1002" : {"name":"Grace","cgpa":7.7}, "URK20CS1003" : {"name":"Lincy","cgpa":9.7} } }, "faculty":{ "cse":{ "678":{"name":"Ashok", "gender":"male","place":"Chennai"}, "857":{"name":"Arun","gender":"male","place":"Coimbatore"} } }
  • 8. Null { "person1":{ “first name":"John", “middle name":null, “last name": “William" }, "person2":{ “first name":"David", “Middlename":"Wilson", “last name": null }
  • 9. <script> var json= { "array": [1,2,3], "boolean": true, "color": "gold", "status": null, "number": 123, "object": {"a": "b", "c": "d"}, "string": "Hello World" } </script>
  • 10. Example: <script> var user = new Object(); user.name="Ram"; user.age=23; document.write("His Name is " +user.name + " <br>And his age is " +user.age) var user={ name:"SAM", age:24 } document.write("<br> His Name is " +user.name + " <br>And his age is " +user.age) </script> JAVASCRIPT JSON