title: PHP - Removing \n from JSON response
body: <p>I have a (simplified) JSON response from an API call that looks like below</p>
  
  <pre><code>{"status":true,"action_values":"{\n \"range_from\": \"0\",\n \"range_to\": \"0\"\n}"}
  </code></pre>
  
  <p>I am trying to remove the <strong><em>\n</em></strong> characters from above using PHP but it doesn't seem to be working.</p>
  
  <p>I try:</p>
  
  <pre><code>$trimmed = str_replace("\n", "", $response);
  </code></pre>
  
  <p>Where <strong><em>$response</em></strong> is my JSON string as above. But this does not remove/replace the <strong><em>\n</em></strong> character. </p>