-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.htm
152 lines (114 loc) · 4.4 KB
/
default.htm
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JSON Visualization</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="robots" content="index,follow"/>
<meta name="description" content="Simple, easy method to visually inspect a JSON-encoded string."/>
<meta name="keywords" content="json,visualize,pretty print,developer tool"/>
<!-- <link rel="canonical" href="http://chris.photobooks.com/json/default.htm"/> -->
<link rel="stylesheet" type="text/css" href="./yui28/reset-fonts.css"/>
<link rel="stylesheet" type="text/css" href="./yui28/base.css"/>
<link rel="stylesheet" type="text/css" href="./default.css"/>
<script type="text/javascript" src="./yui28/yuiloader-dom-event.js"></script>
<script type="text/javascript" src="./yui28/json-min.js"></script>
<script type="text/javascript" src="./default-min.js"></script>
</head>
<body>
<h1>
<a href="http://www.json.org/" title="JavaScript Object Notation">JSON</a> Visualization
</h1>
<menu style="
margin: 0px 0px 1em 0px;
padding: 0px;
float: left;
width: 12em;">
<h3 style="margin-top: 0px;">Input</h3>
<p>
<label>
<input type="radio" name="jsonParser" id="jsonStrict" value="1" checked="checked"/> Strict JSON
</label><br/>
<label>
<input type="radio" name="jsonParser" id="jsonEval" value="0"/> Eval
</label>
</p>
<h3>Output</h3>
<p id="jsonOutputSet">
<label>
<input type="radio" name="jsonOutStyle" id="json2HTML" value="1" checked="checked"/> HTML
</label><br/>
<label>
<input type="radio" name="jsonOutStyle" id="json2JSON" value="0"/> JSON
</label>
</p>
<h3>Options:</h3>
<p id="jsonOptionSet" class="HTML">
<label id="jsonTrunc_label">
<input type="checkbox" id="jsonTrunc" value="1" checked="checked"/> Truncate long strings
</label><br/>
<label id="jsonDate_label">
<input type="checkbox" id="jsonDate" value="1" checked="checked"/> Detect encoded dates
</label><br/>
<label id="jsonData_label">
<input type="checkbox" id="jsonData" value="1" checked="checked"/> Detect data structures
</label><br/>
<label id="jsonSpace_label">
<input type="checkbox" id="jsonSpace" value="1"/>
Preserve whitespace
</label>
</p>
<h3>Actions:</h3>
<p>
<button id="cmdRender">Render</button><br/>
<span id="loadCommands">
<a id="cmdLoad">Load</a>
<span id="reloadCommand">
/ <a id="cmdReload">Reload</a>
</span>
</span>
<span id="loadMessage" style="display: none;">
Loading...
</span><br/>
<a id="cmdValidate">Validate</a><br/>
<a id="cmdClear">Clear</a><br/>
<a id="cmdEncode">Re-encode</a><br/>
<a id="cmdRemoveCRLF">Remove Line Breaks</a><br/>
<a id="cmdDecodeURI">Decode URI</a><br/>
<a id="cmdTrim2JSON">Trim non-JSON</a><br/>
<span id="htmlCommands">
<a id="cmdCollapse">Collapse</a> /
<a id="cmdExpand">Expand</a> All<br/>
</span>
<a id="cmdHelp" href="help.htm" target="help">Help</a><br/>
<a id="cmdBeer" href="beer.htm" target="beer">Beer Fund</a>
</p>
<code id="jsonLocation"></code>
</menu>
<div style="padding-left: 13em;">
<h2 style="margin-top: 0px; font-size: 108%;">
<label for="jsonInput">Input:</label>
<small id="jsonSize"></small>
</h2>
<textarea id="jsonInput" rows="10" cols="50" placeholder="Paste your JSON here" spellcheck="false" autofocus="autofocus"></textarea>
<h2 style="font-size: 108%;">Output:</h2>
<output style="display: block;" for="jsonInput cmdValidate" id="jsonValidateOutput"></output>
<output style="display: block;" for="jsonInput jsonStrict jsonEval json2HTML json2JSON jsonTrunc jsonDate jsonData jsonSpace" id="jsonOutput"></output>
</div>
<footer>
<!--
<address class="vcard" style="clear: both;">
<span class="fn">Chris Nielsen</span><br/>
<a class="email" href="mailto:[email protected]">
</a>
</address>
<p>
<small><time pubdate="pubdate">2011-03-30</time>: Collapse /
Expand All functionality<br/>
See also: <a href="/web/20181023020830/http://chris.photobooks.com/regex/default.htm">Regular Expressions</a> and
<a href="/web/20181023020830/http://chris.photobooks.com/xml/default.htm">XML Utilities</a></small>
</p>
-->
</footer>
</body>
</html>