com.google.gson.JsonSyntaxException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GSON read from URL
    via Stack Overflow by CMTV
    ,
  • Report
    via GitHub by SPARKSTA
    ,
    • com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 3 path $[0] at com.google.gson.Gson.fromJson(Gson.java:899) at com.google.gson.Gson.fromJson(Gson.java:852) at com.google.gson.Gson.fromJson(Gson.java:801) at MojangAPIStatus.getMojangAPI(MojangAPIStatus.java:20) at MojangAPIStatus.MojangAPIState(MojangAPIStatus.java:31) at Main.main(Main.java:9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 3 path $[0] at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350) at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:172) at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) at com.google.gson.Gson.fromJson(Gson.java:887) ... 10 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    jf-astjf-ast
    6 times, last one,
    Hiren AmaliyarHiren Amaliyar
    2 times, last one,
    Nikolay RybakNikolay Rybak
    9 times, last one,
    justCodeitjustCodeit
    11 times, last one,
    48 more bugmates