title: json_decode won't work without stripslashes (magic_quotes in WordPress)
body: <p>On the client side, I'm working with array of JavaScript objects. On submit I need to send it to PHP with form and manipulate the data further on the server-side.</p>
  
  <p>So when building or changing an array of objects on the JavaScript side, I'm saving it to hidden input. It is passes with the form as expected, but the problem is that <code>json_decode</code> returns <code>NULL</code> if I don't <code>stripslashes</code> before decoding it.</p>
  
  <p>Magic Quotes are off as I use PHP > 5.5, and <code>get_magic_quotes_gpc()</code> always returns <code>FALSE</code>.</p>
  
  <p>Why do I need stripslashes in this case, and will this be the case on any production server with magic quotes off?</p>
  
  <p>P.S.: Currently I'm still working on a development environment on Windows and an <a href="https://de.wikipedia.org/wiki/EasyPHP" rel="nofollow noreferrer">EasyPHP</a> local server.</p>
  
  <p>Posted data on server side looks like (<code>var_dump</code>):</p>
  
  <p>I'm using WordPress as a container of my application.</p>
  
  <pre><code>string(5045) "[{\"address_components\":[{\"long_name\":\"Flughafenstrasse\",\"short_name\":\"Flughafenstrasse\"...
  </code></pre>