com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

Stack Overflow | AND4011002849 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    custom message error using retrofit ResponseBody

    Stack Overflow | 6 months ago | AND4011002849
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
  2. 0

    GSON deserialization going wrong: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

    Stack Overflow | 1 year ago | Charlotte1993
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
  3. 0

    Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path

    Stack Overflow | 4 months ago | Theo
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Retrofit Android basic and simple issue

    Stack Overflow | 1 month ago | Zumry Mohamed
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  6. 0

    Cant get the corect gson response kitkat devices

    Stack Overflow | 11 months ago | swaroop
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

  1. iridic 59 times, last 4 months ago
  2. th3teacher 1 times, last 7 months ago
  3. ank_07 27 times, last 7 months ago
  4. Stefan Braune 2 times, last 8 months ago
  5. Diogo Jaym 4 times, last 9 months ago
5 more registered users
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

    at com.google.gson.stream.JsonReader.beginObject()
  2. Gson
    ReflectiveTypeAdapterFactory$Adapter.read
    1. com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
    2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)
    2 frames