com.google.gson.stream.MalformedJsonException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This means you had a syntax problem in your serialization/deserialization, check the Gson javadoc to check the right syntax: https://goo.gl/g7LnZb

tip

This seems to be a bug in the-blue-alliance, fixed in version 4.2.3 (link for github in case you want the changelog: https://goo.gl/NQAKUf ). If you're not using it, it might be that you're parsing xml as json.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 186#15256115
    via GitHub by gmcnaught
    ,
  • GitHub comment 186#15256423
    via GitHub by alshabib
    ,
  • Can't open .rb(ruby) files.
    via by Unknown author,
  • How to Pass/Parse Object From AngularJS using GSON
    via Stack Overflow by Kash
    ,
    • com.google.gson.stream.MalformedJsonException: Unterminated string at line 39 column 10 at com.google.gson.Gson.fromJson(Gson.java:734) at com.google.gson.Gson.fromJson(Gson.java:686) at com.google.gson.Gson.fromJson(Gson.java:636) at org.flowvisor.config.FVConfig.readFromFile(FVConfig.java:99) at org.flowvisor.config.LoadConfig.main(LoadConfig.java:139) Caused by: com.google.gson.stream.MalformedJsonException: Unterminated string at line 39 column 10 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1158) at com.google.gson.stream.JsonReader.nextString(JsonReader.java:1014) at com.google.gson.stream.JsonReader.nextInObject(JsonReader.java:755) at com.google.gson.stream.JsonReader.quickPeek(JsonReader.java:387) at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:340) at com.google.gson.internal.bind.ObjectTypeAdapter.read(ObjectTypeAdapter.java:65) at com.google.gson.internal.bind.ObjectTypeAdapter.read(ObjectTypeAdapter.java:57) at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:38) at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:183) at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:141) at com.google.gson.Gson.fromJson(Gson.java:720) ... 4 more

    Users with the same issue

    nasimknasimk
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown UserUnknown User
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    30 more bugmates