DECODING JSON CODE! HOW TO?

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:13 UTC
Read the original article Hit count: 643

Filed under:
|
|

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

Related posts about php

Related posts about JSON