The following code replaces only one single quote:
var a = "[{'column1':'value0','column2':'value1','column3':'value2'}]"; var b = a.replace(/'/g, '"'); console.log(b);
Edit: Removed \ as there are useless here.