The following code replaces only one single quote:
Need to use regex for this:
var a = "[{'column1':'value0','column2':'value1','column3':'value2'}]"; var b = a.replace(/\'/g, "\"");
http://jsfiddle.net/9b3K3/