What's the most straightforward way to parse an unquoted JSON string?
For instance, if I have something like this:
{property1:value1, property2:value2}
Using the following code will result in an error:
JSON.parse(badJSONString);
This is because a valid JSON should have keys and values enclosed in quotes: {"property1":"value1"}