- json_decode: documentation ( source)
<?php
$json = '{
"Products": [
{
"_id": 1
},
{
"_id": 2
}
]
}';
$object = json_decode($json, true);
foreach($object as $inner_array) {
echo $inner_array['_id']."\n";
}