You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to parse a JSON that starts with a array. [ {...}, {...} ]
although when i try to cast that to a JSONObject i get a nullPointer later on when trying to .get(key) anything
but casting to JSONArray the size of the array is 0 and i get a nullPointer when trying to use .get(0)
my goal is to get the second object.
The text was updated successfully, but these errors were encountered:
laundmo
changed the title
parser.parse(in); needs to be cast to json object even if json starts with array.
parser.parse(in); when the JSON starts with Array
Jul 10, 2018
laundmo
changed the title
parser.parse(in); when the JSON starts with Array
nullpointer when parsing JSON that starts with Array
Jul 10, 2018
i'm trying to parse a JSON that starts with a array.
[ {...}, {...} ]
although when i try to cast that to a JSONObject i get a nullPointer later on when trying to
.get(key)
anythingbut casting to JSONArray the size of the array is 0 and i get a nullPointer when trying to use
.get(0)
my goal is to get the second object.
The text was updated successfully, but these errors were encountered: