How to know if object value is existing in JSON on android?
Hei I'm new to web service using android. I want to know how could I check if an value exist in JSON? Here is a sample JSON
{
"contacts": [
{
"id": "c200",
"name": "Michael Jordan",
"email": "mj@gmail.com",
"address": "xx-xx-xxxx,x - street, x - country",
"gender" : "male",
"phone": {
"mobile": "+91 0000000000",
"home": "00 000000",
"office": "00 000000"
}
}
]
}
I want to know if the name Michael Jordan is existing in JSON. Please help me with this I only know how to check if the object exist in JSON using has but how if I want to check the value?
Read more
stackoverflow.comm
No comments:
Post a Comment