Convert Javascript Object literals to JSON
Single quotes? Unquoted properties? Trailing commas? Comments?
Just turn this:
/* Javascript object */
{
foo: 'bar', // comment
'hello': `world`, // trailing comma?
}
Into this:
{
"foo": "bar",
"hello": "world"
}