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

Stack Overflow | CMTV | 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

    GSON read from URL

    Stack Overflow | 6 months ago | CMTV
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 3 path $[0]
  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

    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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Async task's messages exchange with Java Servlet

    Stack Overflow | 2 years ago
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 692 path $
  6. 0

    Amy Mitchell - Google+

    google.com | 1 year ago
    com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 3.8 at line 1 column 200

  1. Emrah Küçük 9 times, last 2 months ago
  2. linxiaolong 4 times, last 2 months ago
  3. Indri Yunita 4 times, last 3 months ago
  4. nasimk 4 times, last 2 months ago
  5. Alexandru Popa 96 times, last 3 months ago
16 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_ARRAY but was BEGIN_OBJECT at line 1 column 3 path $[0]

    at com.google.gson.stream.JsonReader.beginArray()
  2. Gson
    Gson.fromJson
    1. com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350)
    2. com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:172)
    3. com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145)
    4. com.google.gson.Gson.fromJson(Gson.java:887)
    5. com.google.gson.Gson.fromJson(Gson.java:852)
    6. com.google.gson.Gson.fromJson(Gson.java:801)
    6 frames
  3. Unknown
    Main.main
    1. MojangAPIStatus.getMojangAPI(MojangAPIStatus.java:20)
    2. MojangAPIStatus.MojangAPIState(MojangAPIStatus.java:31)
    3. Main.main(Main.java:9)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  5. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame