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

Stack Overflow | AND4011002849 | 2 months ago
  1. 0

    custom message error using retrofit ResponseBody

    Stack Overflow | 2 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 | 12 months 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 | 2 weeks 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

    Trying to read JSON (using GSON) into an Object which has another object as a field.

    Stack Overflow | 2 years ago | bourbaki4481472
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
  6. 0

    Installation Error - Hortonworks

    hortonworks.com | 1 year ago
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3442

  1. iridic 59 times, last 2 weeks ago
  2. th3teacher 1 times, last 3 months ago
  3. ank_07 27 times, last 4 months ago
  4. Stefan Braune 2 times, last 5 months ago
  5. Diogo Jaym 4 times, last 6 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