<?php
$string = '{
"contacts": [{
"addedAt": 1414182103652,
"vid": 2,
"canonical-vid": 2,
"merged-vids": [],
"portal-id": 448845,
"is-contact": true,
"properties": {
"firstname": {
"value": "Andre"
},
"lastmodifieddate": {
"value": "1472024018755"
},
"company": {
"value": "test"
},
"lastname": {
"value": "Jansen"
}
}
}]
}';
$json = json_decode($string,true);
foreach ($json['contacts'][0]['properties']['company'] as $person) {
echo $person;
}
preferences:
59.84 ms | 402 KiB | 5 Q