1.json生成与解析
compile 'com.google.code.gson:gson:2.8.0'Gson gson = new Gson();
User user = new User();...
gson.toJson(user);//生成json
gson.fromJson("",User.class );//解析json
2.RxJava2+Retrofit2+RxLifecycle2
1.json生成与解析
compile 'com.google.code.gson:gson:2.8.0'Gson gson = new Gson();
User user = new User();...
gson.toJson(user);//生成json
gson.fromJson("",User.class );//解析json
2.RxJava2+Retrofit2+RxLifecycle2
494
1838

被折叠的 条评论
为什么被折叠?