I want to convert
{
foo:"bar",
hello:"world",
}
into
{
"foo":"bar",
"hello":"world",
}
I'm thinking about a substitute commande like this
s/(.*):/"<the_thing_captured_on_the_left>"/g
But how do I access the content before : to wrap it in quotes ?