MalformedJsonException:第1行第343列路径$ .nickname的意外值

时间:2019-03-06 06:52:23

标签: java android

enter image description here

Type listType = new TypeToken<Subscriber>() {}.getType();

Subscriber data = new Gson().fromJson(response.body().get("data").toString().trim(), listType);
SharedPreferences.Editor editor = sharedpreferences.edit();
Gson gson = new Gson();
String json = gson.toJson(data);
editor.putString("subscriber", json);
editor.apply();

0 个答案:

没有答案