0% found this document useful (0 votes)
92 views33 pages

JSON

JSON is a lightweight data-interchange format that uses human-readable text to transmit data objects consisting of attribute–value pairs and array data types (or any other serializable value). It is built on two structures: a collection of name/value pairs and an ordered list of values. A JSON object holds key/value pairs where the key is a string and the value can be of any type. A JSON array represents an ordered collection of values where elements are separated by commas. JSON Schema allows defining the structure of JSON data including validation. jQuery is a JavaScript library that simplifies HTML document traversal and manipulation, events, animations and Ajax interactions for rapid web development.

Uploaded by

Adithya Vardhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views33 pages

JSON

JSON is a lightweight data-interchange format that uses human-readable text to transmit data objects consisting of attribute–value pairs and array data types (or any other serializable value). It is built on two structures: a collection of name/value pairs and an ordered list of values. A JSON object holds key/value pairs where the key is a string and the value can be of any type. A JSON array represents an ordered collection of values where elements are separated by commas. JSON Schema allows defining the structure of JSON data including validation. jQuery is a JavaScript library that simplifies HTML document traversal and manipulation, events, animations and Ajax interactions for rapid web development.

Uploaded by

Adithya Vardhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 33

JSON

1
Example
The JSON file must be save with .json extension. Let's see a simple JSON example.

2
3
4
5
6
JSON Object
JSON object holds key/value pair. Each key is represented as a string in JSON and value can be
of any type. The keys and values are separated by colon. Each key/value pair is separated by
comma.
The curly brace { represents JSON object.
Let's see an example of JSON object.

In the above example, employee


is an object in which "name",
"salary" and "married" are the
key. In this example, there are
string, number and boolean value
7
for the keys.
JSON Object with Numbers
JSON supports numbers in double precision floating-point format. The number can be digits (0-9),
fractions (.33, .532 etc) and exponents (e, e+, e-,E, E+, E-).

8
JSON Array
JSON array represents ordered list of values. JSON array can store multiple values. It can store
string, number, boolean or object in JSON array.
In JSON array, values must be separated by comma.
The [ (square bracket) represents JSON array.

9
10
JSON Schema is a specification for JSON based format for defining the structure of JSON data. It was
written under IETF draft which expired in 2011. JSON Schema −
•Describes your existing data format.
•Clear, human- and machine-readable documentation.
•Complete structural validation, useful for automated testing.
•Complete structural validation, validating client-submitted data.

11
12
13
14
15
jQuery

16
jQuery

17
jQuery – Important Core features

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

You might also like