DmitrMakeev commited on
Commit
b9318bf
·
verified ·
1 Parent(s): 8a3698d

Update buil_json_m.html

Browse files
Files changed (1) hide show
  1. 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, null, 2);
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) {