企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ function json_decode_new($str, $m=false) { if(preg_match('/w:/', $str)) $str = preg_replace('/(\w+):/is', '"$1":', $str); return json_decode($str, $m); } json_decode_new('{result:133,total:154,Page:0,list:[{Prdh:"abcde"}]}') [ "result" => 133, "total" => 154, "Page" => 0, "list" => [ [ "Prdh" => "abcde", ], ], ] ~~~ ~~~ function json_decode_new($str, $m=false) { if(preg_match('/w:/', $str)) $str = preg_replace('/(\w+):/is', '"$1":', $str); return json_decode($str, $m); } json_decode_new('{result:133,total:154,Page:0,list:[{Prdh:"abcde"}]}') ~~~