[PHP] json_decode error by wrong json string with quotes
2014-01-28 00:00
1 minute read

Normal json string:

{"Hey":"There"}

Error json string got from $_POST variable:

{\"Hey\":\"There\"}

This may causes by magic_quotes in php.ini Magic is never good in development.


Back to posts


comments powered by Disqus