Skip to content Skip to sidebar Skip to footer

Problems With Json.getjsonarray("?") In Android

I am trying to get my code work. I want to make a mysql connection and send the data with json to my android app. I guess it almost works but my logcat gives me this warning almos

Solution 1:

getJSONArray() expects to be given a key whose value is an array. So it expects JSON that looks more like this:

{"contactlijst": [{"staff_phone":"123","staff_name":"fabian"...

If this doesn't work, try validating your JSON to ensure it is formatted correctly. I often use JSONLint for that purpose.


Post a Comment for "Problems With Json.getjsonarray("?") In Android"