{
code: "AL",
z: 3204
}, {
code: "DZ",
z: 35468
},
尝试返回类似的东西。我这样做:
$arr = array ('code'=>array('z'),'US'=>2233332,'c'=>3,'d'=>4,'e'=>5);
echo json_encode($arr);
答案 0 :(得分:5)
只需按照json的格式设置:
$foo = array(
array(
'code' => 'AL',
'z' => 3204
),
array(
'code' => 'DZ',
'z' => 35468
)
);