com.google.gson.JsonSyntaxException: Expected a com.g oogle.gson.JsonObject but was com.google.gson.JsonPrimitive at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.jav a:917) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Type AdapterRuntimeTypeWrapper.java:40) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:82) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:61) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref lectiveTypeAdapterFactory.java:116) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re ad(ReflectiveTypeAdapterFactory.java:216)

GitHub | hmspain | 4 months ago
  1. 0

    GitHub comment 145#240304280

    GitHub | 4 months ago | hmspain
    com.google.gson.JsonSyntaxException: Expected a com.g oogle.gson.JsonObject but was com.google.gson.JsonPrimitive at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.jav a:917) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Type AdapterRuntimeTypeWrapper.java:40) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:82) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:61) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref lectiveTypeAdapterFactory.java:116) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re ad(ReflectiveTypeAdapterFactory.java:216)
  2. 0

    GitHub comment 145#240291185

    GitHub | 4 months ago | hmspain
    com.google.gson.JsonSyntaxException: Expected a com.g oogle.gson.JsonObject but was com.google.gson.JsonPrimitive at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.jav a:917) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Type AdapterRuntimeTypeWrapper.java:40) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:82) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:61) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref lectiveTypeAdapterFactory.java:116) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re ad(ReflectiveTypeAdapterFactory.java:216)
  3. 0

    GitHub comment 145#240294937

    GitHub | 4 months ago | seanford
    com.google.gson.JsonSyntaxException: Expected a com.g oogle.gson.JsonObject but was com.google.gson.JsonPrimitive at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.jav a:917) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Type AdapterRuntimeTypeWrapper.java:40) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:82) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:61) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref lectiveTypeAdapterFactory.java:116) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re ad(ReflectiveTypeAdapterFactory.java:216)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

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

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

  1. Indri Yunita 4 times, last 2 weeks ago
  2. nasimk 1 times, last 3 weeks ago
  3. Alexandru Popa 96 times, last 3 weeks ago
  4. iridic 6 times, last 4 weeks ago
  5. bmacedo 36 times, last 3 weeks ago
14 more registered users
52 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. com.google.gson.JsonSyntaxException

    Expected a com.g oogle.gson.JsonObject but was com.google.gson.JsonPrimitive at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.jav a:917) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Type AdapterRuntimeTypeWrapper.java:40) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:82) at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.re ad(CollectionTypeAdapterFactory.java:61) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref lectiveTypeAdapterFactory.java:116) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re ad(ReflectiveTypeAdapterFactory.java:216)

    at com.google.gson.Gson.fromJson()
  2. Gson
    Gson.fromJson
    1. com.google.gson.Gson.fromJson(Gson.java:879)
    2. com.google.gson.Gson.fromJson(Gson.java:944)
    3. com.google.gson.Gson.fromJson(Gson.java:917)
    3 frames