“Expected BEGIN_OBJECT but was STRING at line 1 column 1”

前端 未结 14 2424
误落风尘
误落风尘 2020-11-22 01:11

I have this method:

public static Object parseStringToObject(String json) {
    String Object = json;
    Gson gson = new Gson();
    Object objects = gson.f         


        
14条回答
  •  渐次进展
    2020-11-22 01:57

    Make sure you have DESERIALIZED objects like DATE/DATETIME etc. If you are directly sending JSON without deserializing it then it can cause this problem.

提交回复
热议问题