-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (49 loc) · 2.04 KB
/
index.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<head>
<title>Json Change Values</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123138137-6"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'UA-123138137-6');</script>
</head>
<body style="background-color: lightgray;">
<h1 style="text-align: center; font-family: 'Patua One'; font-size: 30px; text-shadow: 0px 1px rgba(0, 0, 0, 0.5); font-weight: bold; margin-bottom: 0px; margin-top: 0px;">
Json Change Values
</h1>
<br/>
<table width="100%">
<tr>
<td width="33%">
Put your JSON here
</td>
<td width="33%">
See only your values, and edit them
</td>
<td width="33%">
Get the updated JSON with the new values here
</td>
</tr>
<tr>
<td>
<textarea id="origjson" style="width: 100%; height: 500px;" oninput="json2vals()">{a:"b", "c": {"d": "e"}}</textarea>
</td>
<td>
<textarea id="justvalues" style="width: 100%; height: 500px;" oninput="vals2json()"></textarea>
</td>
<td>
<textarea id="jsonwithvalues" style="width: 100%; height: 500px;"></textarea>
</td>
</tr>
</table>
You can use this when you want to translate your JSON to another language:<br>
1. Put your JSON on the left pane.<br>
2. Copy the values on the middle pane.<br>
3. Translate the values on translation service such as <a href="https://translate.google.com">translate.google.com<a>.<br>
4. Get your translated JSON on the right pane.<br>
<div style="position: absolute; text-align: center; bottom: 10px; width: 100%;">
Created by <a href="https://github.com/erasta">Eran</a>, view code on <a href="https://github.com/erasta/JsonChangeVals">GitHub</a>
</div>
<script src="./json2vals.js"></script>
<script>
json2vals();
vals2json();
</script>
</body>
</html>