I am getting a response by calling API. which is like this.
[{"id":213132},{"id":241132},{"id":465413},{"id":546351},{"id":164854,"data":[{"rate" : 20}]},
{"id":564656,"data":[{"rate" : 40}]}]
How can I check that for particular id, there is a key data exist or not?
Any help would be great. Thank You.