SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
Prepared for Dr. Azrul Hazri bin Jantan Present by Zainal Abdul Kahar
JSON
Discovering JavaScript Object Notation
Review!
Computing Conversations!
By Charles Severance!
University of Michigan
Background
❖ Discovered by Douglas Crockford self-
appointed evangelist!
❖ Invent and applying JSON in 2001 at State
Software!
❖ Create a webpage to make it as standard!
❖ Popular format for data serialisation!
❖ Extensively use to encode data for transfer
between server and Ajax application, to
connect two servers communicating via
web services
Introduction
❖ JSON (JavaScript Object Notation) is a lightweight data-
interchange format. It is easy for humans to read and write
and easy for machines to parse and generate!
❖ It is based on a subset of the JavaScript Programming
Language!
❖ JSON is a text format that is completely language
independent but uses conventions that are familiar to
programmers of the C-family of languages, including C, C+
+, C#, Java, JavaScript, Perl, Python, and many others
Data exchange
❖ The most common structures use in programming are scalar variables, linear
lists and key-value pair!
❖ JSON represents these structures in a form of direct serialisation!
❖ Greatly reduce the mismatch between in memory structure in application
and the serialisation format!
❖ JSON is convenient and efficient!
❖ Using JSON in JavaScript gives advantage compared of using other format
such as XML
JSON vs XML
❖ It is a constant debate between JSON and XML for the right formatting for
data representation!
❖ XML is an enterprise solution with many toolset for manipulation!
❖ JSON slowly displacing XML as the preferred way for data exchange!
❖ JSON has the natural advantage as a serialisation format which exactly the
same as data structures that programming language represent
JSON vs XML
❖ The number of new API using JSON is increasing and displacing XML
XML vs JSON
JSON Structure
❖ JSON is built on two structures:!
❖ A collection of name/value pairs. In various languages, this is realised as
an object, record, struct, dictionary, hash table, keyed list, or associative
array.!
❖ An ordered list of values. In most languages, this is realised as an array,
vector, list, or sequence.
JSON Structure
Source JSON.ORG
JSON Structure
TEST CODE
Raw Data
Data extracted from VB.net Server
Security
❖ Although JSON is intended solely as a data serialisation format, its design as
a non-strict subset of the JavaScript scripting language poses several security
concerns. These concerns centre on the use of a JavaScript interpreter to
execute JSON text dynamically as embedded JavaScript. This exposes a
program to errant or malicious scripts. This is a serious issue when dealing
with data retrieved from the Internet.
Future of JSON
❖ According to Charles, once the programmer switch to JSON, they seldom get
back to XML!
❖ The more programmers use JSON, the requirement for schema for JSON’s
object grows!
❖ There are effort to add value to JSON without changing it such as “JSON for
linked data”.

Mais conteúdo relacionado

Mais procurados

Mais procurados (8)

Sparql a simple knowledge query
Sparql  a simple knowledge querySparql  a simple knowledge query
Sparql a simple knowledge query
 
From ontology to wiki
From ontology to wikiFrom ontology to wiki
From ontology to wiki
 
R-Users Group JSON and ReST Introduction using Twitter
R-Users Group JSON and ReST Introduction using TwitterR-Users Group JSON and ReST Introduction using Twitter
R-Users Group JSON and ReST Introduction using Twitter
 
Dynamic websites
Dynamic websitesDynamic websites
Dynamic websites
 
Eol Drupal Dman Presentation
Eol   Drupal   Dman PresentationEol   Drupal   Dman Presentation
Eol Drupal Dman Presentation
 
SMWCon Fall 2015 FForms
SMWCon Fall 2015 FFormsSMWCon Fall 2015 FForms
SMWCon Fall 2015 FForms
 
Web ontology language (owl)
Web ontology language (owl)Web ontology language (owl)
Web ontology language (owl)
 
Owl web ontology language
Owl  web ontology languageOwl  web ontology language
Owl web ontology language
 

Destaque

Zuimuavietnam
ZuimuavietnamZuimuavietnam
ZuimuavietnamZui Mua
 
Lincoln assassination
Lincoln assassinationLincoln assassination
Lincoln assassinationzsolly7
 
[freespace] @ IFTF for EDRT - 5.13.15
[freespace] @ IFTF for EDRT - 5.13.15[freespace] @ IFTF for EDRT - 5.13.15
[freespace] @ IFTF for EDRT - 5.13.15Michael Zuckerman
 
San Francisco Startup Scena
San Francisco Startup ScenaSan Francisco Startup Scena
San Francisco Startup ScenaZeljko Svedic
 
William Johns - An Introduction to the Baroque Period
William Johns - An Introduction to the Baroque PeriodWilliam Johns - An Introduction to the Baroque Period
William Johns - An Introduction to the Baroque PeriodWilliam Johns
 
Mini projek ( PUTING BELIUNG)
Mini projek ( PUTING BELIUNG)Mini projek ( PUTING BELIUNG)
Mini projek ( PUTING BELIUNG)zoroblossom
 
Carrera UNICEF 10k
Carrera UNICEF 10kCarrera UNICEF 10k
Carrera UNICEF 10kzukintana
 
Richard dawkins folyam az édenkertbõl
Richard dawkins  folyam az édenkertbõlRichard dawkins  folyam az édenkertbõl
Richard dawkins folyam az édenkertbõlzsombor10
 
Lista nueva para_papapillo[1]
Lista nueva para_papapillo[1]Lista nueva para_papapillo[1]
Lista nueva para_papapillo[1]zulaydecarrasco
 
Daipositives manovich
Daipositives manovichDaipositives manovich
Daipositives manovichzorinder
 
Fusepool End User Case GAIA Final Conference Brussels
Fusepool End User Case GAIA Final Conference BrusselsFusepool End User Case GAIA Final Conference Brussels
Fusepool End User Case GAIA Final Conference BrusselsZsuzsanna Bódi
 
Hkb 221 presentation
Hkb 221 presentationHkb 221 presentation
Hkb 221 presentationZul Fahmi
 
T shirt powerpoint
T shirt powerpointT shirt powerpoint
T shirt powerpointzornbinkerl
 
Presentación Jai Batzordea 2011
Presentación Jai Batzordea 2011Presentación Jai Batzordea 2011
Presentación Jai Batzordea 2011Zorrotzako Elkartea
 
Example lesson plans[1]
Example lesson plans[1]Example lesson plans[1]
Example lesson plans[1]Zul Aizam
 

Destaque (20)

Emoticones
EmoticonesEmoticones
Emoticones
 
Zuimuavietnam
ZuimuavietnamZuimuavietnam
Zuimuavietnam
 
Lincoln assassination
Lincoln assassinationLincoln assassination
Lincoln assassination
 
[freespace] @ IFTF for EDRT - 5.13.15
[freespace] @ IFTF for EDRT - 5.13.15[freespace] @ IFTF for EDRT - 5.13.15
[freespace] @ IFTF for EDRT - 5.13.15
 
Tugas praktikum
Tugas praktikumTugas praktikum
Tugas praktikum
 
San Francisco Startup Scena
San Francisco Startup ScenaSan Francisco Startup Scena
San Francisco Startup Scena
 
William Johns - An Introduction to the Baroque Period
William Johns - An Introduction to the Baroque PeriodWilliam Johns - An Introduction to the Baroque Period
William Johns - An Introduction to the Baroque Period
 
Mini projek ( PUTING BELIUNG)
Mini projek ( PUTING BELIUNG)Mini projek ( PUTING BELIUNG)
Mini projek ( PUTING BELIUNG)
 
Un minuto
Un minutoUn minuto
Un minuto
 
Rpt math t5
Rpt math t5Rpt math t5
Rpt math t5
 
Carrera UNICEF 10k
Carrera UNICEF 10kCarrera UNICEF 10k
Carrera UNICEF 10k
 
Richard dawkins folyam az édenkertbõl
Richard dawkins  folyam az édenkertbõlRichard dawkins  folyam az édenkertbõl
Richard dawkins folyam az édenkertbõl
 
Lista nueva para_papapillo[1]
Lista nueva para_papapillo[1]Lista nueva para_papapillo[1]
Lista nueva para_papapillo[1]
 
Daipositives manovich
Daipositives manovichDaipositives manovich
Daipositives manovich
 
Fusepool End User Case GAIA Final Conference Brussels
Fusepool End User Case GAIA Final Conference BrusselsFusepool End User Case GAIA Final Conference Brussels
Fusepool End User Case GAIA Final Conference Brussels
 
Opinion journal
Opinion journalOpinion journal
Opinion journal
 
Hkb 221 presentation
Hkb 221 presentationHkb 221 presentation
Hkb 221 presentation
 
T shirt powerpoint
T shirt powerpointT shirt powerpoint
T shirt powerpoint
 
Presentación Jai Batzordea 2011
Presentación Jai Batzordea 2011Presentación Jai Batzordea 2011
Presentación Jai Batzordea 2011
 
Example lesson plans[1]
Example lesson plans[1]Example lesson plans[1]
Example lesson plans[1]
 

Semelhante a Json (20)

J s o n
J s o nJ s o n
J s o n
 
JSON PRETTIFY.pdf
JSON PRETTIFY.pdfJSON PRETTIFY.pdf
JSON PRETTIFY.pdf
 
JSON Injection
JSON InjectionJSON Injection
JSON Injection
 
JSON - (English)
JSON - (English)JSON - (English)
JSON - (English)
 
Json
JsonJson
Json
 
JSON Application
JSON ApplicationJSON Application
JSON Application
 
Session5 04.evangelos varthis
Session5 04.evangelos varthisSession5 04.evangelos varthis
Session5 04.evangelos varthis
 
Json
JsonJson
Json
 
Maxim Zaks: Deep dive into data serialisation
Maxim Zaks: Deep dive into data serialisationMaxim Zaks: Deep dive into data serialisation
Maxim Zaks: Deep dive into data serialisation
 
What is JSON? | JSON vs XML | Edureka
What is JSON? | JSON vs XML | EdurekaWhat is JSON? | JSON vs XML | Edureka
What is JSON? | JSON vs XML | Edureka
 
JSON
JSONJSON
JSON
 
Discovering Implicit Schemas in JSON Data
Discovering Implicit Schemas in JSON DataDiscovering Implicit Schemas in JSON Data
Discovering Implicit Schemas in JSON Data
 
Discovering Implicit Schemas in JSON Data
Discovering Implicit Schemas in JSON DataDiscovering Implicit Schemas in JSON Data
Discovering Implicit Schemas in JSON Data
 
Big data
Big dataBig data
Big data
 
RIA Data and Security, 2007
RIA Data and Security, 2007RIA Data and Security, 2007
RIA Data and Security, 2007
 
Data Serialization in Python JSON vs. Pickle
Data Serialization in Python JSON vs. PickleData Serialization in Python JSON vs. Pickle
Data Serialization in Python JSON vs. Pickle
 
Json
JsonJson
Json
 
Devoxx - JSON Validation using JSON Schema and Jackson
Devoxx - JSON Validation using JSON Schema and JacksonDevoxx - JSON Validation using JSON Schema and Jackson
Devoxx - JSON Validation using JSON Schema and Jackson
 
DataWrangler @VGSOM
DataWrangler @VGSOMDataWrangler @VGSOM
DataWrangler @VGSOM
 
Json
JsonJson
Json
 

Último

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Último (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

Json

  • 1. Prepared for Dr. Azrul Hazri bin Jantan Present by Zainal Abdul Kahar JSON Discovering JavaScript Object Notation Review! Computing Conversations! By Charles Severance! University of Michigan
  • 2. Background ❖ Discovered by Douglas Crockford self- appointed evangelist! ❖ Invent and applying JSON in 2001 at State Software! ❖ Create a webpage to make it as standard! ❖ Popular format for data serialisation! ❖ Extensively use to encode data for transfer between server and Ajax application, to connect two servers communicating via web services
  • 3. Introduction ❖ JSON (JavaScript Object Notation) is a lightweight data- interchange format. It is easy for humans to read and write and easy for machines to parse and generate! ❖ It is based on a subset of the JavaScript Programming Language! ❖ JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C+ +, C#, Java, JavaScript, Perl, Python, and many others
  • 4. Data exchange ❖ The most common structures use in programming are scalar variables, linear lists and key-value pair! ❖ JSON represents these structures in a form of direct serialisation! ❖ Greatly reduce the mismatch between in memory structure in application and the serialisation format! ❖ JSON is convenient and efficient! ❖ Using JSON in JavaScript gives advantage compared of using other format such as XML
  • 5. JSON vs XML ❖ It is a constant debate between JSON and XML for the right formatting for data representation! ❖ XML is an enterprise solution with many toolset for manipulation! ❖ JSON slowly displacing XML as the preferred way for data exchange! ❖ JSON has the natural advantage as a serialisation format which exactly the same as data structures that programming language represent
  • 6. JSON vs XML ❖ The number of new API using JSON is increasing and displacing XML
  • 8. JSON Structure ❖ JSON is built on two structures:! ❖ A collection of name/value pairs. In various languages, this is realised as an object, record, struct, dictionary, hash table, keyed list, or associative array.! ❖ An ordered list of values. In most languages, this is realised as an array, vector, list, or sequence.
  • 11.
  • 13. Raw Data Data extracted from VB.net Server
  • 14. Security ❖ Although JSON is intended solely as a data serialisation format, its design as a non-strict subset of the JavaScript scripting language poses several security concerns. These concerns centre on the use of a JavaScript interpreter to execute JSON text dynamically as embedded JavaScript. This exposes a program to errant or malicious scripts. This is a serious issue when dealing with data retrieved from the Internet.
  • 15. Future of JSON ❖ According to Charles, once the programmer switch to JSON, they seldom get back to XML! ❖ The more programmers use JSON, the requirement for schema for JSON’s object grows! ❖ There are effort to add value to JSON without changing it such as “JSON for linked data”.