title: String replace from JSON
body: <p>I have a JSON response that is not properly formatted and has speical characters coming in and I want to clean it up by removing the special characters using string.replace(). For some reason it is not working. </p>
  
  <p>Here is the JSON result </p>
  
  <pre><code>[{"User::newPassword":["Password could not be changed. The request can't be validated"]},[]]
  </code></pre>
  
  <p>and here is my expression.</p>
  
  <pre><code>resp.replace(::g, '');
  </code></pre>
  
  <p>But it doesn't seem to work. Any advice on this would be appreciated as there is nothing I can do for it on the backend. </p>