What sort of object is this and how to use it?

Posted by Gary on Stack Overflow See other posts from Stack Overflow or by Gary
Published on 2010-06-13T09:42:05Z Indexed on 2010/06/13 9:52 UTC
Read the original article Hit count: 225

Filed under:
|
|
|
|

What would be the correct name for this type of array?

There are 3 main sections and 4 sub-parts consisting of "issuedTime" "text" "url" and "validToTime", how do you start to convert this to an object? If there was only 1 main section, it would be fairly simple to do however with 3 main parts and no identification for each main section has me scratching my head as where to start.

Any advise appreciated.

[{
"issuedTime":"7:13pm Sunday 13 June 2010",
"text":"\nAmended 7:10pm.\n\nText text and more text\n",
"url":"\/folder\/fc\/name.png",
"validToTime":"12:00am Monday 14 June 2010"
},{
"issuedTime":"8:33pm Sunday 13 June 2010",
"text":"\nText and more text.\n",
"url":"\/folder\/fc\/name.png",
"validToTime":"12:00pm Monday 14 June 2010"
},{
"issuedTime":"10:40am Sunday 13 June 2010",
"text":"\nAnd even more text.",
"url":"\/folder\/fc\/name.png",
"validToTime":"12:00am Tuesday 15 June 2010"
}
]

© Stack Overflow or respective owner

Related posts about php

Related posts about arrays