title: How do I replace single quotes with double quotes in JavaScript?
body: <p>The following code replaces only one single quote:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var a = "[{'column1':'value0','column2':'value1','column3':'value2'}]";
  var b = a.replace("'", "\"");
  console.log(b);</code></pre>
  </div>
  </div>
  </p>