This commit is contained in:
JustSteel
2021-05-10 22:29:01 +02:00
parent 526315d65c
commit 9c1f8a973d
38 changed files with 4397 additions and 21 deletions
+5
View File
@@ -0,0 +1,5 @@
const object = { name: "John Smith" };
const json = JSON.stringify(object); // {"name":"John Smith"}
console.log(json);
const unquoted = json.replace(/"([^"]+)":/g, '$1:');
console.log(unquoted); // {name:"John Smith"}