title: How do I remove backslashes from a JSON string?
body: <p>I have a JSON string that looks as below</p>
  
  <pre><code>'{\"test\":{\"test1\":{\"test1\":[{\"test2\":\"1\",\"test3\": \"foo\",\"test4\":\"bar\",\"test5\":\"test7\"}]}}}'
  </code></pre>
  
  <p>I need to change it to the one below using Ruby or Rails:</p>
  
  <pre><code>'{"test":{"test1":{"test1":[{"test2":"1","test3": "foo","test4":"bar","test5":"bar2"}]}}}'
  </code></pre>
  
  <p>I need to know how to remove those slashes.</p>