SlideShare a Scribd company logo
JSON
JavaScript Object Notation
By: Ibrahim Alibrahim (ibrah.ibra@gmail.com)
23 May 2015
5/23/2015 1
Outlines
 Introduction
 Example
 Some History
 Specification
 JSON vs. XML
 Conclusion
5/23/2015 2
JSON - Introduction
JSON is a light-weight alternative to XML for data-interchange
JSON = JavaScript Object Notation
◦ It’s really language independent
◦ most programming languages can easily read it and instantiate objects or some other data structure
Defined in RFC 4627
Started gaining tracking ~2006 and now widely used
http://json.org/ has more information
5/23/2015 3
Example
This is a JSON object with five key-value pairs
Objects are wrapped by curly braces
There are no object IDs
Keys are strings
Values are numbers, strings, objects or arrays
Arrays are wrapped by square brackets
{
"firstName": "John",
"lastName" : "Smith", "age" : 25,
"address" :
{
"streetAdr” : "21 2nd Street", "city" : "New York",
"state" : "NY", ”zip" : "10021“
},
"phoneNumber":
[
{"type" : "home", "number": "212 555-1234"},
{"type" : "fax", "number” : "646 555-4567"}
]
}
5/23/2015 4
Some History
1999:
ECMA-262
2002:
json.org
2006:
RFC-4627
2006:
AJAX
2013:
ECMA-404
2014:
RFC-7159
5/23/2015 5
 JSON has no version number.
 JSON is stable.
JSON Specification (BNF) - 1
5/23/2015 6
JSON Specification (BNF) - 2
5/23/2015 7
JSON Specification (BNF) - 3
5/23/2015 8
JSON Specification (BNF) - 4
5/23/2015 9
JSON vs. XML (Data Exchange Formats)
Criteria JSON XML
AJAX
The X in AJAX
JavaScript baby Needs more libraries
Namespaces No Yes
Input validation No Yes
Transmission time less more
Verbosity less more
Web services
REST SOAP
REST is more popular in
non-critical applications
SOAP is more reliable is business
applications
5/23/2015 10
JSON vs. XML (Case Study)
5/23/2015
 Comparison of JSON and XML Data Interchange Formats: A Case Study - Montana State
University – Bozeman
 Scenario 1: 1 million objects.
 Scenario 2: 5 samples (20000, 40000, 60000, 80000, 100000) objects with statistical analysis.
11
JSON vs. XML (Case Study)
5/23/2015 12
Conclusion
 JSON is a light weight text format for data exchange.
 Simple BNF: objects, arrays, values (strings, numbers, null).
 JSON is much faster than XML in AJAX applications.
 REST + AJAX are the boosters of JSON.
 ADE should include JSON not only XML.
5/23/2015 13
5/23/2015 14
Thank you

More Related Content

PPTX
PPTX
JSON: The Basics
DOCX
What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?
PPTX
PPT
JavaScript Object Notation (JSON)
JSON: The Basics
What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?
JavaScript Object Notation (JSON)

What's hot (20)

ODP
Json Tutorial
PPT
Java Script Object Notation (JSON)
PPT
JSON - Quick Overview
PPT
java script json
PDF
Intro to JSON
PPT
PPTX
JSON - JavaScript Object Notation
PPT
Xml dom & sax by bhavsingh maloth
PPTX
Java script and json
PDF
Java script
PPTX
JSON
PPTX
XML Document Object Model (DOM)
KEY
Devoxx - JSON Validation using JSON Schema and Jackson
PPTX
Introduction to the DOM
PPTX
INTRODUCTION TO DOM AND DOM TREE
PDF
JSON and MongoDB in R
PPT
Understanding XML DOM
PDF
Top JSON Interview Questions for Freshers
Json Tutorial
Java Script Object Notation (JSON)
JSON - Quick Overview
java script json
Intro to JSON
JSON - JavaScript Object Notation
Xml dom & sax by bhavsingh maloth
Java script and json
Java script
JSON
XML Document Object Model (DOM)
Devoxx - JSON Validation using JSON Schema and Jackson
Introduction to the DOM
INTRODUCTION TO DOM AND DOM TREE
JSON and MongoDB in R
Understanding XML DOM
Top JSON Interview Questions for Freshers
Ad

Viewers also liked (20)

PDF
Json tutorial
PPTX
Design Beautiful REST + JSON APIs
PPTX
JSON and REST
PDF
JSON - fat-free, independent & self-describing
PPT
XML tekortkomingen en pluspunten
PPTX
Linked data-tooling-xml
PDF
JSON-LD: Linked Data for Web Apps
PPT
Careers In Java Script Ajax - Java Script Ajax Tutorials & Programs by Learni...
PPT
Inner core of Ajax
DOCX
Hari Resume
PPTX
Rekayasa web part 3 khaerul anwar
PPTX
Introduction to JSON & AJAX
PPT
The NoSQL Way in Postgres
 
PPT
jQuery For Beginners - jQuery Conference 2009
PDF
jQuery for beginners
PPTX
jQuery Presentation
PPT
External Data Access with jQuery
PPTX
jQuery PPT
PDF
jQuery for beginners
KEY
JSON-LD: JSON for Linked Data
Json tutorial
Design Beautiful REST + JSON APIs
JSON and REST
JSON - fat-free, independent & self-describing
XML tekortkomingen en pluspunten
Linked data-tooling-xml
JSON-LD: Linked Data for Web Apps
Careers In Java Script Ajax - Java Script Ajax Tutorials & Programs by Learni...
Inner core of Ajax
Hari Resume
Rekayasa web part 3 khaerul anwar
Introduction to JSON & AJAX
The NoSQL Way in Postgres
 
jQuery For Beginners - jQuery Conference 2009
jQuery for beginners
jQuery Presentation
External Data Access with jQuery
jQuery PPT
jQuery for beginners
JSON-LD: JSON for Linked Data
Ad

Similar to JSON (20)

PPTX
LU 1.3. JSON & XML.pptx about how they work and introduction
PPTX
An introduction to json
PPTX
Web Fundamentals: JavaScript Objects Json and XML
PDF
Json
PDF
JSON Application
PPTX
Json
PPTX
Intro to JSON
PDF
JSON PRETTIFY.pdf
PPTX
Json training
PPTX
Introduction to JavaScript Object Notation(JSON)
PPTX
JSON Support in Salesforce - winter 12
PDF
Json tutorial, a beguiner guide
PPT
Json – java script object notation
PDF
07 objective-c session 7
PPT
PPTX
Discovering Implicit Schemas in JSON Data
PPTX
Discovering Implicit Schemas in JSON Data
PPTX
Easy JSON Data Manipulation in Spark
LU 1.3. JSON & XML.pptx about how they work and introduction
An introduction to json
Web Fundamentals: JavaScript Objects Json and XML
Json
JSON Application
Json
Intro to JSON
JSON PRETTIFY.pdf
Json training
Introduction to JavaScript Object Notation(JSON)
JSON Support in Salesforce - winter 12
Json tutorial, a beguiner guide
Json – java script object notation
07 objective-c session 7
Discovering Implicit Schemas in JSON Data
Discovering Implicit Schemas in JSON Data
Easy JSON Data Manipulation in Spark

Recently uploaded (20)

PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
Complete Guide to Website Development in Malaysia for SMEs
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Cost to Outsource Software Development in 2025
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
AutoCAD Professional Crack 2025 With License Key
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PPTX
assetexplorer- product-overview - presentation
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Design an Analysis of Algorithms II-SECS-1021-03
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Complete Guide to Website Development in Malaysia for SMEs
Designing Intelligence for the Shop Floor.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Cost to Outsource Software Development in 2025
Design an Analysis of Algorithms I-SECS-1021-03
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
Reimagine Home Health with the Power of Agentic AI​
AutoCAD Professional Crack 2025 With License Key
Autodesk AutoCAD Crack Free Download 2025
Odoo Companies in India – Driving Business Transformation.pdf
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
iTop VPN Free 5.6.0.5262 Crack latest version 2025
assetexplorer- product-overview - presentation

JSON

  • 1. JSON JavaScript Object Notation By: Ibrahim Alibrahim ([email protected]) 23 May 2015 5/23/2015 1
  • 2. Outlines  Introduction  Example  Some History  Specification  JSON vs. XML  Conclusion 5/23/2015 2
  • 3. JSON - Introduction JSON is a light-weight alternative to XML for data-interchange JSON = JavaScript Object Notation ◦ It’s really language independent ◦ most programming languages can easily read it and instantiate objects or some other data structure Defined in RFC 4627 Started gaining tracking ~2006 and now widely used http://json.org/ has more information 5/23/2015 3
  • 4. Example This is a JSON object with five key-value pairs Objects are wrapped by curly braces There are no object IDs Keys are strings Values are numbers, strings, objects or arrays Arrays are wrapped by square brackets { "firstName": "John", "lastName" : "Smith", "age" : 25, "address" : { "streetAdr” : "21 2nd Street", "city" : "New York", "state" : "NY", ”zip" : "10021“ }, "phoneNumber": [ {"type" : "home", "number": "212 555-1234"}, {"type" : "fax", "number” : "646 555-4567"} ] } 5/23/2015 4
  • 6. JSON Specification (BNF) - 1 5/23/2015 6
  • 7. JSON Specification (BNF) - 2 5/23/2015 7
  • 8. JSON Specification (BNF) - 3 5/23/2015 8
  • 9. JSON Specification (BNF) - 4 5/23/2015 9
  • 10. JSON vs. XML (Data Exchange Formats) Criteria JSON XML AJAX The X in AJAX JavaScript baby Needs more libraries Namespaces No Yes Input validation No Yes Transmission time less more Verbosity less more Web services REST SOAP REST is more popular in non-critical applications SOAP is more reliable is business applications 5/23/2015 10
  • 11. JSON vs. XML (Case Study) 5/23/2015  Comparison of JSON and XML Data Interchange Formats: A Case Study - Montana State University – Bozeman  Scenario 1: 1 million objects.  Scenario 2: 5 samples (20000, 40000, 60000, 80000, 100000) objects with statistical analysis. 11
  • 12. JSON vs. XML (Case Study) 5/23/2015 12
  • 13. Conclusion  JSON is a light weight text format for data exchange.  Simple BNF: objects, arrays, values (strings, numbers, null).  JSON is much faster than XML in AJAX applications.  REST + AJAX are the boosters of JSON.  ADE should include JSON not only XML. 5/23/2015 13

Editor's Notes