I am trying to transform the following string into actual objects. It seems that JSON.parse is not functioning as expected because all the properties are grouped together in a single string instead of being separate. This text string is retrieved from an API request.
Transform
var s ="{prop1:\"value\", prop2:\"value2\", prop3:\"value3\"}";
to
s = {prop1: 'value1', prop2: 'value2', prop3: 'value3'};