Is it possible to remove the quotes from keys in JSON.stringify? Normally it will have quotes:
const object = { name: "Foo Bar", birthdate: { date: "2000-01-01", time: "12:34" } };
console.log(JSON.stringify(object, null, " "));
Output:
{
"name": "Foo Bar",
"birthdate": {
"date": "2000-01-01",
"time": "12:34"
}
}
What I want is something like this:
{
name: "Foo Bar",
birthdate: {
date: "2000-01-01",
time: "12:34"
}
}
Is this even possible, or do I have to create my own JSON serializer?