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.

  • store objects in android gson
    via Stack Overflow by ant
    ,
  • Help!Forge 1.6.2 isn't working!
    via by Unknown author,
  • rahmad hidayat - Google+
    via by Unknown author,
  • Help!Forge 1.6.2 isn't working!
    via by Unknown author,
  • GitHub comment 9#12825186
    via GitHub by PepijnK
    ,
    • com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 5 at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176) at com.google.gson.Gson.fromJson(Gson.java:795) at com.google.gson.Gson.fromJson(Gson.java:761) at com.google.gson.Gson.fromJson(Gson.java:710) at com.google.gson.Gson.fromJson(Gson.java:682) at com.infy.service.DSprojectClient.main(DSprojectClient.java:30) Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 5 at com.google.gson.stream.JsonReader.expect(JsonReader.java:339) at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165) ... 5 more

    Users with the same issue

    Unknown visitor1 times, last one,
    jf-ast
    6 times, last one,
    Hiren Amaliyar
    2 times, last one,
    Nikolay Rybak
    9 times, last one,
    justCodeit
    11 times, last one,
    46 more bugmates