Insert double quotes between matches around colons.
You need to wrap substition.substr(1)+'"' with parenthesis afterwards. (substr is needed to remove hanging doublequote at the start of the string)
ex)
var json = '{ '+json_ish.replace(regex,subs).substr(1)+'" }';
...
Submitted by anonymous - 9 years ago