php代码

<?php
$data='[{"Name":"a1","Number":"123","Contno":"000","QQNo":""},{"Name":"a1","Number":"123","Contno":"000","QQNo":""},{"Name":"a1","Number":"123","Contno":"000","QQNo":""}]';
echo json_decode($data);
?>

输出结果

Array ( [] => stdClass Object ( [Name] => a1 [Number] =>  [Contno] =>  [QQNo] => ) [] => stdClass Object ( [Name] => a1 [Number] =>  [Contno] =>  [QQNo] => ) [] => stdClass Object ( [Name] => a1 [Number] =>  [Contno] =>  [QQNo] => ) ) 

php代码

<?php
$data='[{"Name":"a1","Number":"123","Contno":"000","QQNo":""},{"Name":"a1","Number":"123","Contno":"000","QQNo":""},{"Name":"a1","Number":"123","Contno":"000","QQNo":""}]';
echo json_decode($data,true); // 区别在这里
?>

输出结果

Array ( [] => Array ( [Name] => a1 [Number] =>  [Contno] =>  [QQNo] => ) [] => Array ( [Name] => a1 [Number] =>  [Contno] =>  [QQNo] => ) [] => Array ( [Name] => a1 [Number] =>  [Contno] =>  [QQNo] => ) ) 
04-13 22:40