remove slashes from json php code example
Example 1: remove slashes from json php
json_decode($val, true, JSON_UNESCAPED_SLASHES);
Example 2: php remove slashes from json
echo stripslashes('{\"test\":{\"test1\":{\"test1\":[{\"test2\":\"1\",\"test3\": \"foo\",\"test4\":\"bar\",\"test5\":\"test7\"}]}}}');