0

i have 1 text field which is Data..user would insert a JSON format data on the text field.
Example of the data is : {"user_id":"123"}
however when i receive the data. It would be {\"user_id\”:\”123\”}
how to change the data into {"user_id":"123"} ??

Carl0s1z
  • 4,683
  • 7
  • 32
  • 47
mokh223
  • 544
  • 3
  • 5
  • 14
  • I think you got `addslashes` on in PHP.http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc – GolezTrol May 26 '14 at 15:01
  • 1
    you upgrade your PHP to a less stone-age version that doesn't have magic_quotes turned on. – Marc B May 26 '14 at 15:02

0 Answers0