标签: c# json.net
我有一个包含整数属性的类。如何使用Newtonsoft.Json序列化该类,使integer属性的值看起来像一个字符串? (在示例中-taskid属性)
Json我目前有:{"sendstatus":{"taskid":614,"systemname":"GS"}}
{"sendstatus":{"taskid":614,"systemname":"GS"}}
我想拥有的杰森:{"sendstatus":{"taskid":"614","systemname":"GS"}}
{"sendstatus":{"taskid":"614","systemname":"GS"}}