I need to find out if an id occurs in my JSON object, for example:
{
"requested": "2009-07-25T14:12:25+01:00",
"channels": [
{"id": 1, "name": "General", "created": "2009-07-25 14:00:02"}
]
}
Specifically I need to check if my id (say, 2) occurs in channels.
i
.id
. How can this be done?