I need to find out if id exists 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"} ] }
In particular, I need to check if my id (say 2) is in the channels. i .id . How can I do that?
source share