_
This commit is contained in:
@@ -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"}
|
||||
Reference in New Issue
Block a user