com.google.gson.JsonParseException: Failed parsing JSON source: java.io.StringReader@911f71 to Json

GitHub | GoogleCodeExporter | 2 years 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

    Can't parse backslash

    GitHub | 2 years ago | GoogleCodeExporter
    com.google.gson.JsonParseException: Failed parsing JSON source: java.io.StringReader@911f71 to Json
  2. 0

    google-gson vs Jackson

    Google Groups | 6 years ago | t02i288a
    com.google.gson.JsonParseException: Expecting array but found object: java.lang.Object@cf5ac5
  3. 0

    crash with embeded "

    GitHub | 2 years ago | GoogleCodeExporter
    com.google.gson.JsonParseException: Failed parsing JSON source: java.io.StringReader@380e28b9 to Json
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JsonParseException: The JsonDeserializer com.google.gson.DefaultTypeAdapters while running google places api

    Stack Overflow | 2 years ago | Kamini
    com.google.gson.JsonParseException: The JsonDeserializer com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter@356dd6e9 failed to deserialized json object {"geometry":{"location":{"lat":-33.8599827,"lng":151.2021282}}} given the type com.google.gson.ParameterizedTypeImpl@53b59b06
  6. 0

    Android Json GSon prom

    Stack Overflow | 6 years ago | dev_android
    com.google.gson.JsonParseException: Expecting array but found object: com.nuvotv.model.ProgramList@4597d758

  1. linxiaolong 5 times, last 4 months ago
7 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.ParseException

    Encountered " "\"" "\" "" at line 1, column 10. Was expecting one of: <DIGITS> ... "null" ... "NaN" ... "Infinity" ... <BOOLEAN> ... <SINGLE_QUOTE_LITERAL> ... <DOUBLE_QUOTE_LITERAL> ... "{" ... "[" ... "-" ...

    at com.google.gson.JsonParserJavacc.generateParseException()
  2. Gson
    Gson.fromJson
    1. com.google.gson.JsonParserJavacc.generateParseException(JsonParserJavacc.java:705)
    2. com.google.gson.JsonParserJavacc.jj_consume_token(JsonParserJavacc.java:587)
    3. com.google.gson.JsonParserJavacc.JsonValue(JsonParserJavacc.java:229)
    4. com.google.gson.JsonParserJavacc.Pair(JsonParserJavacc.java:112)
    5. com.google.gson.JsonParserJavacc.JsonObject(JsonParserJavacc.java:76)
    6. com.google.gson.JsonParserJavacc.parse(JsonParserJavacc.java:36)
    7. com.google.gson.JsonParser.parse(JsonParser.java:54)
    8. com.google.gson.Gson.fromJson(Gson.java:443)
    9. com.google.gson.Gson.fromJson(Gson.java:396)
    9 frames
  3. json
    Main.main
    1. json.Main.main(Main.java:22)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
    1 frame