3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"rows":[{"c":[{"v":"Date(1409052482000)"},{"v":22},{"v":22},{"v":22},{"v":null}]}, {"c":[{"v":"Date(1409052614000)"},{"v":22},{"v":22},{"v":22},{"v":null}]}, {"c":[{"v":"Date(1409052782000)"},{"v":22},{"v":22},{"v":22},{"v":null}]} ]}'; $tempdata = json_decode($json, true); unset($tempdata['rows'][1]); echo 'BEFORE:' . json_encode($tempdata); $newvalue = array_values((array)$tempdata); echo 'AFTER:' . json_encode($newvalue);

preferences:
33.13 ms | 402 KiB | 5 Q