Using this( <https://github.com/JamesFT/Database-Q...
# android
n
Using this( https://github.com/JamesFT/Database-Quotes-JSON/blob/master/quotes.json ) and gson i keep getting an error that
Copy code
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
google 1
m
Looks like you're trying to parse JSON Array as JSON Object
If you're doing
JSONObject(data)
switch it to
JSONArray(data)
n
Thanks! It's easier googling for the exact thing now