Handling escaped slashes in a JSON string
问题 I'm trying to get the json of the database and the code goes like this $path["file_name"] = "www.119.com\/assets\/demo\/large\/".$row["file_name"]; While I convert to a json object and it shows like this. www.119.com\\\/assets\\\/demo\\\/large\\\/demo1.png I just applied \ to print special character / , but it's not working. I applied many things to print the special character. Is it a problem in converting special character to JSON? 回答1: As has been mentioned by others, a forward slash is