$str = '[{"Count":"1789"},{"裁判要旨段原文":"本瑶","案件类型":"3","裁判日期":"2013-04-02","案件名称":"王新华与杭州市"规划局"一审行政判决书","文书ID":"a1b0b3ef-cd55-4bd2-a892-b86564cd3091","审判程序":"一审","案号":"(2013)杭拱行初字第5号","法院名称":"杭州市拱墅区人民法院"}]';
$str = '[{"Count":"1789"},{"裁判要旨段原文":"本瑶","案件类型":"3","裁判日期":"2013-04-02","案件名称":"王新华与杭州市"规划局"一审行政判决书","文书ID":"a1b0b3ef-cd55-4bd2-a892-b86564cd3091","审判程序":"一审","案号":"(2013)杭拱行初字第5号","法院名称":"杭州市拱墅区人民法院"}]'; $str = str_replace('{"','@@@',$str);
$str = str_replace('":"','###',$str);
$str = str_replace('"}','!!!',$str);
$str = str_replace('","','%%%',$str); $str = str_replace('"','&&&',$str); $str = str_replace('@@@','{"',$str);
$str = str_replace('###','":"',$str);
$str = str_replace('!!!','"}',$str);
$str = str_replace('%%%','","',$str); $arr = json_decode($str,true); $a = str_replace('&&&','"',$a);//取出值后再还原双引号