際際滷

際際滷Share a Scribd company logo
3
Most read
4
Most read
5
Most read
JSON  Basics    Shyamala Prayaga
AgendaWhat is JSON?Why JSON?Pros and ConsJSON SyntaxJSON ParserAccessing Data in JSON
What is JSON?Stands for JavaScript Object NotationIs lightweight format for exchanging data between the client and server.Easy for humans to read and write.Easy for machines to parse and generate   Often used in Ajax applications due toIts simplicityits format which is based on JavaScript object literals
Why JSON?JSON is recognized natively by JavaScriptSimple formatThe easiness of reading The easiness of using Lighter than XML
Benefits over XML
Pros and Cons
JSON SyntaxFor objects start the object with { and end it with } For members (properties), use pairs of string : value and separate them by commas For arrays put the arrays between [] For elements put the values directly separated by commas
Example var myFirstJSON ={       "firstName" : "John",油 油 油 "lastName" : "Doe",油 油 油 "age" 油 油 油    : 23 };
JSON ParserYou can convert JSON object into JSON textObject to Text Conversion    var myJSONText = myObject.toJSONString();
Accessing Data in JSONThe most common way to access JSON data is through dot notation.   var myObject = { 'color' : 'blue' };document.writeln(myObject.color);
Questions?
Ad

Recommended

JSON: The Basics
JSON: The Basics
Jeff Fox
Json
Json
Steve Fort
An Introduction To REST API
An Introduction To REST API
Aniruddh Bhilvare
Latest trends in information technology
Latest trends in information technology
Atifa Aqueel
Json
Json
krishnapriya Tadepalli
Css3
Css3
Deepak Mangal
La Transformada De Laplace
Dianitolis
Clean architecture
Clean architecture
.NET Crowd
Intro to React
Intro to React
Justin Reock
Json
Json
Sabarinath Gnanasekar
JavaScript Promises
JavaScript Promises
L&T Technology Services Limited
Spring data jpa
Spring data jpa
Jeevesh Pandey
Ajax presentation
Ajax presentation
Bharat_Kumawat
JavaScript Object Notation (JSON)
JavaScript Object Notation (JSON)
BOSS Webtech
Javascript
Javascript
mussawir20
JavaScript: Events Handling
JavaScript: Events Handling
Yuriy Bezgachnyuk
Introduction to XML
Introduction to XML
Jussi Pohjolainen
react redux.pdf
react redux.pdf
Knoldus Inc.
JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events
WebStackAcademy
Introduction to JSON
Introduction to JSON
Kanda Runapongsa Saikaew
Javascript variables and datatypes
Javascript variables and datatypes
Varun C M
Spring Boot
Spring Boot
HongSeong Jeon
JavaScript - Chapter 10 - Strings and Arrays
JavaScript - Chapter 10 - Strings and Arrays
WebStackAcademy
ReactJS presentation.pptx
ReactJS presentation.pptx
DivyanshGupta922023
Java Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and Example
kamal kotecha
Spring boot introduction
Spring boot introduction
Rasheed Waraich
JSON
Jorge Alberto Lorenzo Losada
Java Collections Framework
Java Collections Framework
Sony India Software Center
03 json for java script
03 json for java script
Ahmed Elbassel
JSON Learning
JSON Learning
Khaled Md. Saifullah

More Related Content

What's hot (20)

Intro to React
Intro to React
Justin Reock
Json
Json
Sabarinath Gnanasekar
JavaScript Promises
JavaScript Promises
L&T Technology Services Limited
Spring data jpa
Spring data jpa
Jeevesh Pandey
Ajax presentation
Ajax presentation
Bharat_Kumawat
JavaScript Object Notation (JSON)
JavaScript Object Notation (JSON)
BOSS Webtech
Javascript
Javascript
mussawir20
JavaScript: Events Handling
JavaScript: Events Handling
Yuriy Bezgachnyuk
Introduction to XML
Introduction to XML
Jussi Pohjolainen
react redux.pdf
react redux.pdf
Knoldus Inc.
JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events
WebStackAcademy
Introduction to JSON
Introduction to JSON
Kanda Runapongsa Saikaew
Javascript variables and datatypes
Javascript variables and datatypes
Varun C M
Spring Boot
Spring Boot
HongSeong Jeon
JavaScript - Chapter 10 - Strings and Arrays
JavaScript - Chapter 10 - Strings and Arrays
WebStackAcademy
ReactJS presentation.pptx
ReactJS presentation.pptx
DivyanshGupta922023
Java Hibernate Programming with Architecture Diagram and Example
Java Hibernate Programming with Architecture Diagram and Example
kamal kotecha
Spring boot introduction
Spring boot introduction
Rasheed Waraich
JSON
Jorge Alberto Lorenzo Losada
Java Collections Framework
Java Collections Framework
Sony India Software Center

Similar to Json (20)

03 json for java script
03 json for java script
Ahmed Elbassel
JSON Learning
JSON Learning
Khaled Md. Saifullah
What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?
What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?
codeandyou forums
java script json
java script json
chauhankapil
CS8651 IP Unit 2 pdf regulation -2017 anna university
CS8651 IP Unit 2 pdf regulation -2017 anna university
amrashbhanuabdul
JSON Presentation.pptx JSON Presentation.pptx
JSON Presentation.pptx JSON Presentation.pptx
trwdcn
J s o n
J s o n
nasifalnahian
Json training
Json training
Elavarasi Dc
JSON.pptx
JSON.pptx
MaheshHirulkar1
Json
Json
baabtra.com - No. 1 supplier of quality freshers
Introduction to JavaScript Object Notation(JSON)
Introduction to JavaScript Object Notation(JSON)
gaikwaddavid2022
Intro to JSON
Intro to JSON
George McKinney
Json
Json
baabtra.com - No. 1 supplier of quality freshers
Basics of JSON (JavaScript Object Notation) with examples
Basics of JSON (JavaScript Object Notation) with examples
Sanjeev Kumar Jaiswal
json.pptx
json.pptx
Anum Zehra
Java script and json
Java script and json
Islam Abdelzaher
JSON - (English)
JSON - (English)
Senior Dev
Unit-2.pptx
Unit-2.pptx
AnujSood25
Java Script Object Notation (JSON)
Java Script Object Notation (JSON)
Adnan Sohail
Json
Json
baabtra.com - No. 1 supplier of quality freshers
Ad

More from Shyamala Prayaga (20)

HealthyCodeMay2014
HealthyCodeMay2014
Shyamala Prayaga
Leveraging Augmented Reality Capability for enhancing the shopping experience
Leveraging Augmented Reality Capability for enhancing the shopping experience
Shyamala Prayaga
My Interview with Healthy code Magazine: Future of Android Design
My Interview with Healthy code Magazine: Future of Android Design
Shyamala Prayaga
Ticketing Application
Ticketing Application
Shyamala Prayaga
Interaction design workshop
Interaction design workshop
Shyamala Prayaga
Android design in action
Android design in action
Shyamala Prayaga
Mobile accessibility challenges and best practices v2
Mobile accessibility challenges and best practices v2
Shyamala Prayaga
Mobile Prototyping
Mobile Prototyping
Shyamala Prayaga
MOBILE INTERACTION PATTERNS AND NON PATTERNS
MOBILE INTERACTION PATTERNS AND NON PATTERNS
Shyamala Prayaga
Adobe Flex - Developing Rich Internet Application Workshop Day 2
Adobe Flex - Developing Rich Internet Application Workshop Day 2
Shyamala Prayaga
Adobe Flex - Developing Rich Internet Application Workshop Day 2
Adobe Flex - Developing Rich Internet Application Workshop Day 2
Shyamala Prayaga
Accessibility and ucd
Accessibility and ucd
Shyamala Prayaga
Android Design
Android Design
Shyamala Prayaga
Mobile UI and Usability Guidelines V1
Mobile UI and Usability Guidelines V1
Shyamala Prayaga
Mobile Web Frameworks
Mobile Web Frameworks
Shyamala Prayaga
iPhone application development training day 1
iPhone application development training day 1
Shyamala Prayaga
Usability Testing
Usability Testing
Shyamala Prayaga
Ethenographic research
Ethenographic research
Shyamala Prayaga
Improving Site Performace Using Css Sprite
Improving Site Performace Using Css Sprite
Shyamala Prayaga
Universal Design
Universal Design
Shyamala Prayaga
Leveraging Augmented Reality Capability for enhancing the shopping experience
Leveraging Augmented Reality Capability for enhancing the shopping experience
Shyamala Prayaga
My Interview with Healthy code Magazine: Future of Android Design
My Interview with Healthy code Magazine: Future of Android Design
Shyamala Prayaga
Interaction design workshop
Interaction design workshop
Shyamala Prayaga
Android design in action
Android design in action
Shyamala Prayaga
Mobile accessibility challenges and best practices v2
Mobile accessibility challenges and best practices v2
Shyamala Prayaga
MOBILE INTERACTION PATTERNS AND NON PATTERNS
MOBILE INTERACTION PATTERNS AND NON PATTERNS
Shyamala Prayaga
Adobe Flex - Developing Rich Internet Application Workshop Day 2
Adobe Flex - Developing Rich Internet Application Workshop Day 2
Shyamala Prayaga
Adobe Flex - Developing Rich Internet Application Workshop Day 2
Adobe Flex - Developing Rich Internet Application Workshop Day 2
Shyamala Prayaga
Mobile UI and Usability Guidelines V1
Mobile UI and Usability Guidelines V1
Shyamala Prayaga
iPhone application development training day 1
iPhone application development training day 1
Shyamala Prayaga
Improving Site Performace Using Css Sprite
Improving Site Performace Using Css Sprite
Shyamala Prayaga
Ad

Json

  • 1. JSON Basics Shyamala Prayaga
  • 2. AgendaWhat is JSON?Why JSON?Pros and ConsJSON SyntaxJSON ParserAccessing Data in JSON
  • 3. What is JSON?Stands for JavaScript Object NotationIs lightweight format for exchanging data between the client and server.Easy for humans to read and write.Easy for machines to parse and generate Often used in Ajax applications due toIts simplicityits format which is based on JavaScript object literals
  • 4. Why JSON?JSON is recognized natively by JavaScriptSimple formatThe easiness of reading The easiness of using Lighter than XML
  • 7. JSON SyntaxFor objects start the object with { and end it with } For members (properties), use pairs of string : value and separate them by commas For arrays put the arrays between [] For elements put the values directly separated by commas
  • 8. Example var myFirstJSON ={ "firstName" : "John",油 油 油 "lastName" : "Doe",油 油 油 "age" 油 油 油 : 23 };
  • 9. JSON ParserYou can convert JSON object into JSON textObject to Text Conversion var myJSONText = myObject.toJSONString();
  • 10. Accessing Data in JSONThe most common way to access JSON data is through dot notation. var myObject = { 'color' : 'blue' };document.writeln(myObject.color);