String (JSON): {"title":"\"Copper\""}
I have tried
$output = str_replace('\\"', "", $output);
but I got
{"title":"" Copper""}
What I expect
{"title":"Copper"}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you generating the JSON string with your own code (as opposed to getting it from a third-party)? If so, post the code which generates the JSON string and detail what you have done to this point to try and resolve the problem.
If you don’t have control over the JSON string (and/or the creator of the JSON string will not/cannot fix it), then a hacky way to fix it would be: