C#-使用Newtonsoft.Json实现json字符串与object对象互转

 

 

json字符串转object对象:

IF004Response processResponse = JsonConvert.DeserializeObject<IF004Response>(processResponseString);

 

object对象转json字符串:

IF004Process process = new IF004Process();
string processString = JsonConvert.SerializeObject(process);

 

posted @ 2020-09-24 13:04  橘子香气  阅读(4326)  评论(0编辑  收藏  举报