DmitrMakeev
commited on
Update buil_json_m.html
Browse files- buil_json_m.html +1 -1
buil_json_m.html
CHANGED
@@ -162,7 +162,7 @@
|
|
162 |
|
163 |
document.getElementById('saveToClipboard').addEventListener('click', function() {
|
164 |
const json = editor.get();
|
165 |
-
const jsonString = JSON.stringify(json
|
166 |
navigator.clipboard.writeText(jsonString).then(function() {
|
167 |
alert('JSON saved to clipboard!');
|
168 |
}, function(err) {
|
|
|
162 |
|
163 |
document.getElementById('saveToClipboard').addEventListener('click', function() {
|
164 |
const json = editor.get();
|
165 |
+
const jsonString = JSON.stringify(json); // Убираем параметры отступов
|
166 |
navigator.clipboard.writeText(jsonString).then(function() {
|
167 |
alert('JSON saved to clipboard!');
|
168 |
}, function(err) {
|