title: Want to remove curly bracers from a string
body: <p>I did a search through the site, but it's still not working.  </p>
  
  <pre><code>var blah2 = JSON.stringify({foo: 123, bar: &lt;x&gt;&lt;y&gt;&lt;/y&gt;&lt;/x&gt;, baz: 123});
  </code></pre>
  
  <p>this is what I tried:</p>
  
  <pre><code>blah2.replace(/[{}]/g, "");
  </code></pre>
  
  <p>this is what it the string comes out to:</p>
  
  <pre><code>got "{\"baz\":123,\"foo\":123}"
  </code></pre>
  
  <p>(i know this is probably a newb question, but this is my first time working with javascript and i just don't know what i'm missing)</p>