Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (53 loc) · 2.17 KB
/
Copy pathindex.html
File metadata and controls
67 lines (53 loc) · 2.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JSON Formatter & Validator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="app">
<h1>JSON Formatter & Validator</h1>
<p class="subtitle">
Paste your raw JSON to instantly format, validate, and edit values.
This tool helps developers debug and beautify JSON with ease.
<a href="https://github.com/Kushdeveloper68/JSON-formatter" target="_blank">Read documentation</a>
</p>
<div class="panel">
<div class="field">
<label for="inputfield">Input JSON</label>
<textarea id="inputfield" placeholder="Paste or type your raw JSON here..."></textarea>
</div>
<div class="actions">
<button id="error-check-btn">Validate JSON</button>
<div class="inline">
<label for="tabs">Indentation</label>
<select id="tabs">
<option value="2">Default (2 spaces)</option>
<option value="3">3 spaces</option>
<option value="4">4 spaces</option>
</select>
<button id="formate-btn">Format JSON</button>
</div>
</div>
<div class="edit-panel">
<label>Edit JSON Value</label>
<input id="change-value" placeholder="Existing value (key or value)">
<input id="need-value" placeholder="New value to replace">
<button id="edit-btn">Apply Change</button>
</div>
</div>
<div class="output">
<button id="copy-btn">Copy Output</button>
<textarea id="outputfield" placeholder="Formatted JSON will appear here..." disabled></textarea>
</div>
</div>
<footer>
<div>
© Built by <a href="https://kushdeveloper.onrender.com/" target="_blank">kushdeveloper68</a>
</div>
</footer>
<script src="./script.js"></script>
</body>
</html>