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"} ??

C Travel
  • 4,673
  • 7
  • 31
  • 46
mokh223
  • 414
  • 2
  • 5
  • 13
  • 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