-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson.html
More file actions
73 lines (70 loc) · 1.59 KB
/
json.html
File metadata and controls
73 lines (70 loc) · 1.59 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JSON Parser</title>
<link rel="stylesheet"
href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css">
<style>
textarea { width: 100%; height: 380px; }
#output td { font-family: monospace; }
.error { color: red; }
</style>
</head>
<body>
<h1>JSON Parser</h1>
<h2>Input</h2>
<p>
<textarea id="input">{
"firstName": "John",
"lastName": "Smith",
"isAlive": true,
"age": 27,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021-3100"
},
"phoneNumbers": [
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "office",
"number": "646 555-4567"
}
],
"children": [],
"spouse": null
}</textarea>
<input type="submit" id="action" value="Parse">
</p>
<h2>Output</h2>
<table>
<thead>
<tr>
<th></th>
<th>PetitParser</th>
<th>Native</th>
</tr>
</thead>
<tbody>
<tr id="timing">
<th>Timing:</th>
<td class="custom"></td>
<td class="native"></td>
</tr>
<tr id="output">
<th>Output:</th>
<td class="custom"></td>
<td class="native"></td>
</tr>
</tbody>
</table>
<script src="json.dart.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QK0KCHXW3F"></script>
<script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-QK0KCHXW3F');</script>
</body>
</html>