com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
info中的内容为json格式,如果发送的数据结构体 为null;
则会出现这个exception:导致无法解析出正确的model对象
下面这种写法是错误的:
{"info":"","opt":"reset"}
com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
info中的内容为json格式,如果发送的数据结构体 为null;
则会出现这个exception:导致无法解析出正确的model对象
下面这种写法是错误的:
{"info":"","opt":"reset"}