Open laundmo opened 6 years ago
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
.get(key)
but casting to JSONArray the size of the array is 0 and i get a nullPointer when trying to use .get(0)
.get(0)
my goal is to get the second object.
this issue is invalid as JSONObject isn't a JSONArray and the parser first returns the JSONArray object not a JSONObject
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.