📜  php json 错误地解码为字符串 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:43.277000             🧑  作者: Mango

代码示例3
//"[{\"name\": \"bill\", \"score\": 0.7948127388954163}, {\"name\": \"john\", \"score\": 0.782698392868042}]";
//for json in above format try this
$r=json_decode(stripcslashes(trim($response,'"')));