-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs14.html
32 lines (30 loc) · 909 Bytes
/
js14.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible"content="ie-edge">
<title>Json tutorial</title>
</head>
<body>
<div class="container">
this is a container
</div>
<script>
let json_object={
name:"Harry",
obj:"code with harry",
freind:"rohan das",
food:"kadi chawal",
//kadichawalsquad
}
console.log(json_object);
let m= JSON.stringify(json_object)
console.log(m);
m=m.replace('Harry','Larry');
console.log(m)
n=JSON.parse(m);
console.log(n);
</script>
</body>
</html>