Despite my efforts to search through the site, I am still unable to resolve the issue at hand.
var blah2 = JSON.stringify({foo: 123, bar: <x><y></y></x>, baz: 123});
This is what I attempted:
blah2.replace(/[{}]/g, "");
Here's how the string appears after manipulation:
obtained "{\"baz\":123,\"foo\":123}"
I realize this may seem like a basic question, but as a newcomer to javascript, I'm struggling to pinpoint the error. Any guidance would be greatly appreciated.