I do not know for sure, but json_last_error () should :)
My assumption, however, is that it json_encode()does something with \', which then interrupts stripslashes()- for example. add another "\" to avoid backslash.
Don't mess around with a json encoded string using striplslashes()before you decode anyway?
source
share