-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjson.js
More file actions
48 lines (35 loc) · 905 Bytes
/
json.js
File metadata and controls
48 lines (35 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//: JSON
//# What is Json?
/*
Javascript Object Notation (JSON) is a standard text
bassed data format used in web development to send and
recive the data.
*/
//# Advantages of using JSON
/*
=> It is supported by all programing languages
=> It can be used on all platform
=> It is a light weight database standard, so data transmission
is fast
*/
//# Data types supported
/* String, Number, arrays, null, boolean, object */
//# JSON Methods in Javascript
/*
JSON.parse() => Takes JSON string and convert into javascript
object
JSON.stringify() => Convert javascript Object (JSON) into
JSON String (Useful while sending over the network)
*/
//! Syntax and Example
/* {
name: "Robert",
technologies: ["C", "CPP", "JAVASCRIPT", "PHP"],
salary: 100000,
relationship: null,
address: {
city: "Jaipur",
block: 30,
street: "10th Street",
pin_code: 303803,
} */