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

Stack Overflow | Tagman | 8 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

    Parsing object with dynamic key through gson

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

    Editing Config

    GitHub | 6 years ago | lmk-chris
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: invalid number or unquoted string near ?{ "colorMember": "G
  3. 0

    Outputting parsed JSON results from Google Custom Search in Java

    Stack Overflow | 3 years ago | gwar666
    com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Retrofit - removing some invalid characters from response body before parsing it as json

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

    Reading a JSON reply from WeatherUnderground

    Stack Overflow | 4 years ago | Little Child
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2

  1. Hiren 1 times, last 1 week ago
  2. Nikolay Rybak 9 times, last 2 months ago
  3. justCodeit 11 times, last 3 months ago
  4. filpgame 4 times, last 3 months ago
  5. Emrah Küçük 9 times, last 5 months ago
20 more registered users
53 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 41 path $..episodes

    at com.google.gson.stream.JsonReader.beginObject()
  2. Gson
    Gson.fromJson
    1. com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
    2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)
    3. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129)
    4. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220)
    5. com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)
    6. com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187)
    7. com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145)
    8. com.google.gson.Gson.fromJson(Gson.java:887)
    9. com.google.gson.Gson.fromJson(Gson.java:852)
    10. com.google.gson.Gson.fromJson(Gson.java:801)
    10 frames
  3. testing
    ApiTest.main
    1. testing.ApiTest.main(ApiTest.java:114)
    1 frame