SlideShare a Scribd company logo
2
Most read
4
Most read
11
Most read
JSON Introduction
Android JSON
Mark Daniel G. Dacer
JSON
 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 representing arbitrary data in ASCII format
 Can be easily transfer through the internet
 Can be store in disk
 Can be process by most of programming language
Computer and Data
 Computer are great at storing and processing data
 But the data format representation is different across
 The program that has written it
 The architecture of the machine using it
 There’s a good chance that the data is interpreted in different ways
 Can cause corrupt data, errors and incorrect data.
 JSON gives you a way to represent data structure that is free from the
program, it represent. XML does something similar
JSON Example
 This example is a JSON string:
 '{"name":"John", "age":30, "car":null}‘
 It defines an object with 3 properties:
 name
 age
 car
 Each property has a value.
JSON vs XML
 JSON vs XML
JSON is like xml because
 Both JSON and XML are "self describing" (human readable)
 Both JSON and XML can be parsed and used by lots of programming languages
 Both JSON and XML can be fetched with an XMLHttpRequest
JSON is Unlike XML Because
 JSON doesn't use end tag
 JSON is shorter
 JSON is quicker to read and write
 JSON can use arrays
Why JSON is Better Than XML
 XML is much more difficult to parse than JSON.
 JSON is parsed into a ready-to-use JavaScript object.
 Its lightweight in some ways
 Has same parser as the JavaScript
JSON Valid Data Types
 In JSON, values must be one of the following
data types:
 a string
 a number
 an object (JSON object)
 an array
 a boolean
 null
• JSON values cannot be one of the
following data types:
• a function
• a date
• undefined
JSON Variable examples
 a string - {"name":"John"}
 a number - {"age":30}
 an object (JSON object) – {"employee":{"name":"John", "age":30, "city":"New
York"}}
 an array - {"employees":["John", "Anna", "Peter"]}
 a Boolean - {"sale":true}
 Null - {"middlename":null}
Validate and parse your JSON online
 Load JSON url or file on this Web App: https://codebeautify.org/jsonviewer
More learning links
 JSON, not Jason - https://www.youtube.com/watch?v=A0hoqSkyY7o
 Official JSON website - https://www.json.org/json-en.html
 Android JSON parser:
https://www.tutorialspoint.com/android/android_json_parser.htm

More Related Content

PDF
Immutable vs mutable data types in python
PPTX
PPTX
Arrays in Data Structure and Algorithm
PDF
Python NumPy Tutorial | NumPy Array | Edureka
PPTX
PDF
Wrapper classes
PPTX
Python - Numpy/Pandas/Matplot Machine Learning Libraries
PDF
Introduction to NumPy (PyData SV 2013)
Immutable vs mutable data types in python
Arrays in Data Structure and Algorithm
Python NumPy Tutorial | NumPy Array | Edureka
Wrapper classes
Python - Numpy/Pandas/Matplot Machine Learning Libraries
Introduction to NumPy (PyData SV 2013)

What's hot (20)

PPTX
Data Analysis in Python-NumPy
PPT
Python Dictionaries and Sets
PPTX
Scikit Learn intro
PPTX
OLAP & DATA WAREHOUSE
PPTX
Database Management - Lecture 2 - SQL select, insert, update and delete
PDF
Php array
PPT
Data models
PPT
Sql ppt
PPT
JavaScript Object Notation (JSON)
PPTX
Database connectivity to sql server asp.net
PPTX
DBMS Keys
PPTX
Python Seaborn Data Visualization
PDF
Object oriented databases
PPTX
NOSQL and MongoDB Database
PPTX
Tree in data structure
PDF
Data Science With Python
PDF
Data visualization in Python
PDF
Python programming : Strings
PPTX
Python Functions
PPTX
Data Analysis with Python Pandas
Data Analysis in Python-NumPy
Python Dictionaries and Sets
Scikit Learn intro
OLAP & DATA WAREHOUSE
Database Management - Lecture 2 - SQL select, insert, update and delete
Php array
Data models
Sql ppt
JavaScript Object Notation (JSON)
Database connectivity to sql server asp.net
DBMS Keys
Python Seaborn Data Visualization
Object oriented databases
NOSQL and MongoDB Database
Tree in data structure
Data Science With Python
Data visualization in Python
Python programming : Strings
Python Functions
Data Analysis with Python Pandas
Ad

Similar to Intro to JSON (20)

PDF
JSON beautifier (1).pdf
PPTX
Introduction to JavaScript Object Notation(JSON)
PDF
Json
PPTX
Working with JSON.pptx
PPT
java script json
PPTX
All about XML, JSON and related topics..
PPTX
JSON.pptx
PDF
Dealing with JSON files in python with illustrations
PPTX
1 Json Intro and datatype PRESENTATION.pptx
PPTX
PPTX
An introduction to json
PPTX
LU 1.3. JSON & XML.pptx about how they work and introduction
PPTX
JSON - JavaScript Object Notation
PPTX
Web Fundamentals: JavaScript Objects Json and XML
PDF
Hands on JSON
PDF
Basics of JSON (JavaScript Object Notation) with examples
PDF
JSON PRETTIFY.pdf
JSON beautifier (1).pdf
Introduction to JavaScript Object Notation(JSON)
Json
Working with JSON.pptx
java script json
All about XML, JSON and related topics..
JSON.pptx
Dealing with JSON files in python with illustrations
1 Json Intro and datatype PRESENTATION.pptx
An introduction to json
LU 1.3. JSON & XML.pptx about how they work and introduction
JSON - JavaScript Object Notation
Web Fundamentals: JavaScript Objects Json and XML
Hands on JSON
Basics of JSON (JavaScript Object Notation) with examples
JSON PRETTIFY.pdf
Ad

Recently uploaded (20)

PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
Digital Literacy And Online Safety on internet
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
artificial intelligence overview of it and more
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPT
tcp ip networks nd ip layering assotred slides
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
WebRTC in SignalWire - troubleshooting media negotiation
Tenda Login Guide: Access Your Router in 5 Easy Steps
Cloud-Scale Log Monitoring _ Datadog.pdf
Decoding a Decade: 10 Years of Applied CTI Discipline
SASE Traffic Flow - ZTNA Connector-1.pdf
Digital Literacy And Online Safety on internet
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PptxGenJS_Demo_Chart_20250317130215833.pptx
SAP Ariba Sourcing PPT for learning material
artificial intelligence overview of it and more
INTERNET------BASICS-------UPDATED PPT PRESENTATION
Module 1 - Cyber Law and Ethics 101.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
522797556-Unit-2-Temperature-measurement-1-1.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
The New Creative Director: How AI Tools for Social Media Content Creation Are...
tcp ip networks nd ip layering assotred slides
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
WebRTC in SignalWire - troubleshooting media negotiation

Intro to JSON

  • 2. JSON  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 representing arbitrary data in ASCII format  Can be easily transfer through the internet  Can be store in disk  Can be process by most of programming language
  • 3. Computer and Data  Computer are great at storing and processing data  But the data format representation is different across  The program that has written it  The architecture of the machine using it  There’s a good chance that the data is interpreted in different ways  Can cause corrupt data, errors and incorrect data.  JSON gives you a way to represent data structure that is free from the program, it represent. XML does something similar
  • 4. JSON Example  This example is a JSON string:  '{"name":"John", "age":30, "car":null}‘  It defines an object with 3 properties:  name  age  car  Each property has a value.
  • 5. JSON vs XML  JSON vs XML
  • 6. JSON is like xml because  Both JSON and XML are "self describing" (human readable)  Both JSON and XML can be parsed and used by lots of programming languages  Both JSON and XML can be fetched with an XMLHttpRequest
  • 7. JSON is Unlike XML Because  JSON doesn't use end tag  JSON is shorter  JSON is quicker to read and write  JSON can use arrays
  • 8. Why JSON is Better Than XML  XML is much more difficult to parse than JSON.  JSON is parsed into a ready-to-use JavaScript object.  Its lightweight in some ways  Has same parser as the JavaScript
  • 9. JSON Valid Data Types  In JSON, values must be one of the following data types:  a string  a number  an object (JSON object)  an array  a boolean  null • JSON values cannot be one of the following data types: • a function • a date • undefined
  • 10. JSON Variable examples  a string - {"name":"John"}  a number - {"age":30}  an object (JSON object) – {"employee":{"name":"John", "age":30, "city":"New York"}}  an array - {"employees":["John", "Anna", "Peter"]}  a Boolean - {"sale":true}  Null - {"middlename":null}
  • 11. Validate and parse your JSON online  Load JSON url or file on this Web App: https://codebeautify.org/jsonviewer
  • 12. More learning links  JSON, not Jason - https://www.youtube.com/watch?v=A0hoqSkyY7o  Official JSON website - https://www.json.org/json-en.html  Android JSON parser: https://www.tutorialspoint.com/android/android_json_parser.htm