How to decode a JSON String
Posted
by ilnur777
on Stack Overflow
See other posts from Stack Overflow
or by ilnur777
Published on 2010-03-30T07:05:43Z
Indexed on
2010/03/30
7:23 UTC
Read the original article
Hit count: 507
Hi, everybody! Could I ask you to help me to decode this JSON code:
$json = '{"inbox":[{"from":"55512351","date":"29\/03\/2010","time":"21:24:10","utcOffsetSeconds":3600,"recipients":[{"address":"55512351","name":"55512351","deliveryStatus":"notRequested"}],"body":"This is message text."},{"from":"55512351","date":"29\/03\/2010","time":"21:24:12","utcOffsetSeconds":3600,"recipients":[{"address":"55512351","name":"55512351","deliveryStatus":"notRequested"}],"body":"This is message text."},{"from":"55512351","date":"29\/03\/2010","time":"21:24:13","utcOffsetSeconds":3600,"recipients":[{"address":"55512351","name":"55512351","deliveryStatus":"notRequested"}],"body":"This is message text."},{"from":"55512351","date":"29\/03\/2010","time":"21:24:13","utcOffsetSeconds":3600,"recipients":[{"address":"55512351","name":"55512351","deliveryStatus":"notRequested"}],"body":"This is message text."}]}';
I would like to organize above structure to this:
Note 1:
Folder: inbox
From (from): ...
Date (date): ...
Time (time): ...
utcOffsetSeconds: ...
Recepient (address): ...
Recepient (name): ...
Status (deliveryStatus): ...
Text (body): ...
Note 2:
...
Thank you in advance!
© Stack Overflow or respective owner