- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
$json = '{
"Products": [
{
"_id": 1
},
{
"_id": 2
}
]
}';
$object = json_decode($json, true);
foreach($object as $product => $value) print_r($product);