So, I get some JSON values ββfrom the server, but I donβt know if this will be a specific field or not.
So how:
{ "regatta_name":"ProbaRegatta", "country":"Congo", "status":"invited" }
And sometimes an extra field of type appears:
{ "regatta_name":"ProbaRegatta", "country":"Congo", "status":"invited", "club":"somevalue" }
I would like to check if there is a field called "club" so that when parsing I will not get org.json.JSONException: value for club
java json android
Adam Varhegyi Jul 05 '13 at 10:54
source share