json-parse
This commit is contained in:
parent
9b9f696363
commit
19872409c5
@ -142,7 +142,7 @@
|
||||
content = content.replace(/\\\s+/g, "");
|
||||
// content = content.replace(/\\/g, '');
|
||||
// content = content.replace(/[\r\n]/g, "");
|
||||
content = content.replace(/\r?\n/g, '\\n');
|
||||
// content = content.replace(/\r?\n/g, '\\n');
|
||||
current_json = jsonlint.parse(content);
|
||||
current_json_str = JSON.stringify(current_json);
|
||||
result = new JSONFormat(content, 4).toString();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user