SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Team Members 
1. Anum Hanif 
2. Farina Khan 
3. Hafiza Areeba 
4. Haya Samar 
5. Maheen Ashraf 
6. Ramsha Arif 
7. Sadaf Allahdin 
8. Sobia Hashmi 
9. Sundus Munawar 
10. Zara Tariq
What is JSON? 
• Lightweight data-interchange format 
• Subset of JavaScript 
• Easy for humans to read and write 
• Easy for machines to parse and generate 
• Language independent 
JSON
Properties of JSON 
• Human and machine readable format. 
• Strict syntax and parsing requirements. 
• Represents the most general computer science 
data structures like records, lists and trees. 
JSON
Data Interchange 
• JSON is a simple, common representation of 
data. 
• Communication between servers and browser 
clients. 
JSON
Where to use JSON? 
• It is useful when writing any kind of JavaScript-based 
application. 
• I t is used primarily to transmit data between a 
server and web application. 
• JSON with PHP 
• JSON with Perl 
• JSON with Python 
• JSON with JavaScript 
JSON
Where to use JSON? 
• JSON with PHP 
• json_encode 
• json_decode 
• json_last_error 
• JSON with Perl 
• to_json 
• from_json 
• convert_blessed 
JSON
Where to use JSON? 
• JSON with Python 
JSON 
• encode 
• decode 
• JSON with Javascript 
• JSON.stringify 
• JSON.parse
Why JSON ? 
• JSON is syntax for storing and exchanging text 
information. 
• The JSON text format is syntactically identical 
to the code for creating JavaScript objects. 
• Because of this similarity, instead of using a 
parser, a JS program can use the built-in 
functions and execute JSON data to produce 
native JavaScript objects. 
JSON
Why JSON ? 
• 3 Reasons why you should use JSON 
• Clean data 
• Efficiency 
• Scalability 
• As compared to XML, JSON is 
JSON 
• smaller 
• faster and 
• easier to parse
How to use it..? 
• JSON syntax is a subset of JavaScript syntax 
• Json Syntax Rules 
• Data is in name/value pairs 
• Data is separated by commas 
• Curly braces hold objects 
• Square brackets hold arrays 
• JSON Name/Value Pairs 
• JSON data is written as name/value pairs 
• Example 
• "firstName" : "John" 
JSON
How to use it..? 
• JSON values can be 
 A number (integer or floating point) 
 A string (in double quotes) 
 A Boolean (true or false) 
 An array (in square brackets) 
 An object (in curly brackets) 
 null 
• JSON Objects 
 JSON objects are written inside curly brackets 
 Objects can contain multiple name/values pairs 
• Example 
{ "firstName":"John" , "lastName":"Doe" } 
JSON
How to use it..? 
Simple Example 
JSON
How to use it..? 
Result 
JSON
JSON vs. XML 
JSON 
JSON 
• JSON is a text-based 
format. 
• JSON data types: string, 
number, array, Boolean. 
• JSON does not contain 
start and end tags. 
• JSON include arrays. 
• JSON does not have 
support for Namespaces. 
XML 
• XML is a Markup 
Language. 
• XML data are all string. 
• Xml contain start and end 
tags. 
• XML doesn't include 
arrays. 
• XML supports 
Namespaces.
JSON vs. XML 
<?xml version=“1.0” encoding=“utf- 
8”?> 
<students> 
<student> 
<name>Ali</name> 
<age>20</age> 
<gender>male</gender> 
</student> 
<student> 
<name>Bilal</name> 
<age>21</age> 
<gender>male</gender> 
</student> 
</students> 
“students”= [ 
{“name”: “Ali”, “age”: “20”, 
“gender”: “Male”}, 
{“name”: “Bilal”, “age”: “21”, 
“gender”: “Male”} 
] 
JSON 
JSON XML
Examples Of JSON 
JSON
Examples Of JSON 
• Android weather app: 
JSON, HTTP, Async Task 
and Openweathermap 
HTTP Connection 
OpenWeatherMap API 
Async Task 
JSON Object and Parser 
Display Data 
JSON
JSON

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
yht4ever
 
Php Simple Xml
Php Simple XmlPhp Simple Xml
Php Simple Xml
mussawir20
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
Varun C M
 

Was ist angesagt? (20)

Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Document object model
Document object modelDocument object model
Document object model
 
JSON: The Basics
JSON: The BasicsJSON: The Basics
JSON: The Basics
 
Mongo DB
Mongo DBMongo DB
Mongo DB
 
Javascript essentials
Javascript essentialsJavascript essentials
Javascript essentials
 
What is Python JSON | Edureka
What is Python JSON | EdurekaWhat is Python JSON | Edureka
What is Python JSON | Edureka
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
 
Php Simple Xml
Php Simple XmlPhp Simple Xml
Php Simple Xml
 
XML Schema
XML SchemaXML Schema
XML Schema
 
Ajax ppt
Ajax pptAjax ppt
Ajax ppt
 
XML
XMLXML
XML
 
javaScript.ppt
javaScript.pptjavaScript.ppt
javaScript.ppt
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
9. Input Output in java
9. Input Output in java9. Input Output in java
9. Input Output in java
 
Javascript 101
Javascript 101Javascript 101
Javascript 101
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 

Ähnlich wie JSON

JSON PRETTIFY.pdf
JSON PRETTIFY.pdfJSON PRETTIFY.pdf
JSON PRETTIFY.pdf
json beautifier
 

Ähnlich wie JSON (20)

JSON - (English)
JSON - (English)JSON - (English)
JSON - (English)
 
Unit-2.pptx
Unit-2.pptxUnit-2.pptx
Unit-2.pptx
 
Json - ideal for data interchange
Json - ideal for data interchangeJson - ideal for data interchange
Json - ideal for data interchange
 
JSON.pptx
JSON.pptxJSON.pptx
JSON.pptx
 
All about XML, JSON and related topics..
All about XML, JSON and related topics..All about XML, JSON and related topics..
All about XML, JSON and related topics..
 
Data exchange over internet (XML vs JSON)
Data exchange over internet (XML vs JSON)Data exchange over internet (XML vs JSON)
Data exchange over internet (XML vs JSON)
 
Json training
Json trainingJson training
Json training
 
What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?
What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?
What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?
 
Json
JsonJson
Json
 
JSON Learning
JSON LearningJSON Learning
JSON Learning
 
JSON_FIles-Py (2).pptx
JSON_FIles-Py (2).pptxJSON_FIles-Py (2).pptx
JSON_FIles-Py (2).pptx
 
Json processing
Json processingJson processing
Json processing
 
Java Script Object Notation (JSON)
Java Script Object Notation (JSON)Java Script Object Notation (JSON)
Java Script Object Notation (JSON)
 
JSON PRETTIFY.pdf
JSON PRETTIFY.pdfJSON PRETTIFY.pdf
JSON PRETTIFY.pdf
 
JSON Support in Salesforce - winter 12
JSON Support in Salesforce - winter 12JSON Support in Salesforce - winter 12
JSON Support in Salesforce - winter 12
 
Json tutorial, a beguiner guide
Json tutorial, a beguiner guideJson tutorial, a beguiner guide
Json tutorial, a beguiner guide
 
Json
JsonJson
Json
 
java script json
java script jsonjava script json
java script json
 
Json
JsonJson
Json
 
Screaming fast json parsing on Android
Screaming fast json parsing on AndroidScreaming fast json parsing on Android
Screaming fast json parsing on Android
 

Mehr von Zara Tariq

Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)
Zara Tariq
 

Mehr von Zara Tariq (12)

Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domain
 
Query optimization techniques in Apache Hive
Query optimization techniques in Apache Hive Query optimization techniques in Apache Hive
Query optimization techniques in Apache Hive
 
Design and evaluation of an io controller for data protection
Design and evaluation of an io controller for data protectionDesign and evaluation of an io controller for data protection
Design and evaluation of an io controller for data protection
 
Stochastic kronecker graphs
Stochastic kronecker graphsStochastic kronecker graphs
Stochastic kronecker graphs
 
Pull Vs. Push Production
Pull Vs. Push ProductionPull Vs. Push Production
Pull Vs. Push Production
 
Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)
 
Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)
 
Interrupts
Interrupts Interrupts
Interrupts
 
INTERRUPTS
INTERRUPTS INTERRUPTS
INTERRUPTS
 
Toys Vending Machine
Toys Vending MachineToys Vending Machine
Toys Vending Machine
 
An Integrated Cloud Computing Architectural Stack
An Integrated Cloud Computing Architectural Stack An Integrated Cloud Computing Architectural Stack
An Integrated Cloud Computing Architectural Stack
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
 

Kürzlich hochgeladen

Anupama Kundoo Cost Effective detailed ppt with plans and elevations with det...
Anupama Kundoo Cost Effective detailed ppt with plans and elevations with det...Anupama Kundoo Cost Effective detailed ppt with plans and elevations with det...
Anupama Kundoo Cost Effective detailed ppt with plans and elevations with det...
sriharipichandi
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
nirzagarg
 
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
amitlee9823
 
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
nirzagarg
 

Kürzlich hochgeladen (20)

8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
 
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
 
Anupama Kundoo Cost Effective detailed ppt with plans and elevations with det...
Anupama Kundoo Cost Effective detailed ppt with plans and elevations with det...Anupama Kundoo Cost Effective detailed ppt with plans and elevations with det...
Anupama Kundoo Cost Effective detailed ppt with plans and elevations with det...
 
Q4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentationQ4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentation
 
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRLHingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
 
Gamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad IbrahimGamestore case study UI UX by Amgad Ibrahim
Gamestore case study UI UX by Amgad Ibrahim
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
 
Lecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptxLecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptx
 
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
 
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
8377087607, Door Step Call Girls In Majnu Ka Tilla (Delhi) 24/7 Available
8377087607, Door Step Call Girls In Majnu Ka Tilla (Delhi) 24/7 Available8377087607, Door Step Call Girls In Majnu Ka Tilla (Delhi) 24/7 Available
8377087607, Door Step Call Girls In Majnu Ka Tilla (Delhi) 24/7 Available
 
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdfJordan_Amanda_DMBS202404_PB1_2024-04.pdf
Jordan_Amanda_DMBS202404_PB1_2024-04.pdf
 
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
Vip Mumbai Call Girls Borivali Call On 9920725232 With Body to body massage w...
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
 
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
Nisha Yadav Escorts Service Ernakulam ❣️ 7014168258 ❣️ High Cost Unlimited Ha...
 

JSON

  • 1.
  • 2. Team Members 1. Anum Hanif 2. Farina Khan 3. Hafiza Areeba 4. Haya Samar 5. Maheen Ashraf 6. Ramsha Arif 7. Sadaf Allahdin 8. Sobia Hashmi 9. Sundus Munawar 10. Zara Tariq
  • 3. What is JSON? • Lightweight data-interchange format • Subset of JavaScript • Easy for humans to read and write • Easy for machines to parse and generate • Language independent JSON
  • 4. Properties of JSON • Human and machine readable format. • Strict syntax and parsing requirements. • Represents the most general computer science data structures like records, lists and trees. JSON
  • 5. Data Interchange • JSON is a simple, common representation of data. • Communication between servers and browser clients. JSON
  • 6. Where to use JSON? • It is useful when writing any kind of JavaScript-based application. • I t is used primarily to transmit data between a server and web application. • JSON with PHP • JSON with Perl • JSON with Python • JSON with JavaScript JSON
  • 7. Where to use JSON? • JSON with PHP • json_encode • json_decode • json_last_error • JSON with Perl • to_json • from_json • convert_blessed JSON
  • 8. Where to use JSON? • JSON with Python JSON • encode • decode • JSON with Javascript • JSON.stringify • JSON.parse
  • 9. Why JSON ? • JSON is syntax for storing and exchanging text information. • The JSON text format is syntactically identical to the code for creating JavaScript objects. • Because of this similarity, instead of using a parser, a JS program can use the built-in functions and execute JSON data to produce native JavaScript objects. JSON
  • 10. Why JSON ? • 3 Reasons why you should use JSON • Clean data • Efficiency • Scalability • As compared to XML, JSON is JSON • smaller • faster and • easier to parse
  • 11. How to use it..? • JSON syntax is a subset of JavaScript syntax • Json Syntax Rules • Data is in name/value pairs • Data is separated by commas • Curly braces hold objects • Square brackets hold arrays • JSON Name/Value Pairs • JSON data is written as name/value pairs • Example • "firstName" : "John" JSON
  • 12. How to use it..? • JSON values can be  A number (integer or floating point)  A string (in double quotes)  A Boolean (true or false)  An array (in square brackets)  An object (in curly brackets)  null • JSON Objects  JSON objects are written inside curly brackets  Objects can contain multiple name/values pairs • Example { "firstName":"John" , "lastName":"Doe" } JSON
  • 13. How to use it..? Simple Example JSON
  • 14. How to use it..? Result JSON
  • 15. JSON vs. XML JSON JSON • JSON is a text-based format. • JSON data types: string, number, array, Boolean. • JSON does not contain start and end tags. • JSON include arrays. • JSON does not have support for Namespaces. XML • XML is a Markup Language. • XML data are all string. • Xml contain start and end tags. • XML doesn't include arrays. • XML supports Namespaces.
  • 16. JSON vs. XML <?xml version=“1.0” encoding=“utf- 8”?> <students> <student> <name>Ali</name> <age>20</age> <gender>male</gender> </student> <student> <name>Bilal</name> <age>21</age> <gender>male</gender> </student> </students> “students”= [ {“name”: “Ali”, “age”: “20”, “gender”: “Male”}, {“name”: “Bilal”, “age”: “21”, “gender”: “Male”} ] JSON JSON XML
  • 18. Examples Of JSON • Android weather app: JSON, HTTP, Async Task and Openweathermap HTTP Connection OpenWeatherMap API Async Task JSON Object and Parser Display Data JSON

Hinweis der Redaktion

  1. The JSON format was originally specified by Douglas Crockford The JSON filename extension is .json.