Wednesday, July 24, 2013

[android help] How to know if object value is existing in JSON on android?


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

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...