Skip to content

Commit 2f8f3e9

Browse files
authored
Create HTML.html
1 parent e66ec16 commit 2f8f3e9

File tree

1 file changed

+21
-0
lines changed
  • Modern Development/Service Portal Widgets/JSON Beautifier

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<div class="container p-3">
2+
<h3>JSON Beautifier</h3>
3+
<div class="form-group mt-3">
4+
<label>Paste JSON Here</label>
5+
<textarea class="form-control" rows="8" ng-model="rawJson" placeholder='{"key":"value"}'></textarea>
6+
</div>
7+
<div class="mt-2">
8+
<button class="btn btn-primary btn-sm mr-1" ng-click="beautifyJSON()">
9+
Beautify
10+
</button>
11+
</div>
12+
<div class="mt-3" ng-if="error">
13+
<div class="alert alert-danger">
14+
{{error}}
15+
</div>
16+
</div>
17+
<div class="mt-3" ng-if="formattedJson">
18+
<label>Formatted JSON:</label>
19+
<pre class="bg-light p-3" style="overflow-x:auto">{{formattedJson}}</pre>
20+
</div>
21+
</div>

0 commit comments

Comments
 (0)