for ($i = 0; $i < 20; $i++) {

foreach ($json['results'] as $value) {

echo @$value['checkpoints'][$i]['counter'].'
';
echo @$value['checkpoints'][$i]['description'].'
';
echo @$value['checkpoints'][$i]['time'].'
';
echo @$value['checkpoints'][$i]['date'].'
';
echo @$value['checkpoints'][$i]['location'].'
';
echo @$value['checkpoints'][$i]['totalPieces'].'
';
echo @$value['checkpoints'][$i]['pIds'][$i].'
';

}
}