Parsing big json data with php -


i have json this:

[     {         "event": "hard_bounce",         "_id": "323418ee24f744859ce7b7e01f28e0d1",         "msg": {             "ts": 1433426374,             "_id": "323418ee24f744859ce7b7e01f28e0d1",             "state": "bounced",             "subject": "subject",             "email": "testmail@hotmail.com",             "tags": [],             "smtp_events": [],             "resends": [],             "_version": "hm-1sbyhpapyouvsce2-zw",             "diag": "smtp;550 requested action not taken: mailbox unavailable",             "bgtools_code": 10,             "sender": "noreply@domain.net",             "template": null,             "bounce_description": "bad_mailbox"         },         "ts": 1433427203     } ] 

i have email value. how can it? mean have testmail@hotmail.com

how can php?

you can this:

$decoded = json_decode($myjson); echo $decoded[0]->msg->email; 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -