1、引用DLL:Newtonsoft.Json.dll
引用自己项目兼容的dll版本安装
2、Json字符串转Model实体类
UserInfoModel model = new UserInfoModel();
model = JsonConvert.DeserializeObject<UserInfoModel>(msg);
3、Model实体类转Json
...
1、引用DLL:Newtonsoft.Json.dll
引用自己项目兼容的dll版本安装
2、Json字符串转Model实体类
UserInfoModel model = new UserInfoModel();
model = JsonConvert.DeserializeObject<UserInfoModel>(msg);
3、Model实体类转Json
...