```php
<?php
$data = json_decode(file_get_contents("
http://push2.eastmoney.com/api/qt/kamt.rtmin/get?fields1=f1&fields2=f51,f56"));
$data = $data->data->s2n;
echo "[\n";
for($i = 0 ; $i < sizeof($data)-1 ; $i++) {
echo " {\"time\": \"".explode(',', $data[$i])[0]."\", \"price\": ".explode(',', $data[$i])[1]."\"},\n";
}
echo " {\"time\": \"".explode(',', $data[sizeof($data)-1])[0]."\", \"price\": ".explode(',', $data[sizeof($data)-1])[1]."\"}\n";
echo "]\n";
?>
```
php 新手,代码烂,请见谅