如何将int属性序列化为字符串Newtonsoft JSON c#

时间:2020-07-28 15:29:25

标签: c# json.net

我有一个包含整数属性的类。如何使用Newtonsoft.Json序列化该类,使integer属性的值看起来像一个字符串? (在示例中-taskid属性)

Json我目前有:{"sendstatus":{"taskid":614,"systemname":"GS"}}

我想拥有的杰森:{"sendstatus":{"taskid":"614","systemname":"GS"}}

0 个答案:

没有答案