如何使用 json.net & c# 进行序列化?什么是最好的方法?如何追加子节点?像这样输出json字符串:
{ "OptQty":100,"OptQtySpecified":false, "OptTextList": [{"SiteStockTextNo":1634245835,"DescriptiveText":"TextStyle","DisplayIs":true,"ChangeType":1}], "OptSel" :{"OptRepImageLevel":0,"OptRepImageLevelSpecified":true,"SortOrder":1, "ObjOptInfo":{"ObjOptNo1":0,"ObjOptClaseNm1":"fileds1","ObjOptClaseNm5":""}, "计算" :null, "StockList": [ {"SiteStockNo":1633316906,"Text1":"abcd","Text2":"PK7701","Qty":0,"Price":14500,"SoldOutIs":true}, {"SiteStockNo":1633316907,"Text1":"abcd","Text2":"PK7702","Qty":0,"Price":12500,"SoldOutIs":false}, {"SiteStockNo":1633316908,"Text1":"abcd","Text2":"PK7703","Qty":0,"Price":12500,"SoldOutIs" :false}, {"SiteStockNo":1633316915,"Text1":"abcd","Text2":"PK7711","Qty":0,"Price":2500,"SoldOutIs":false} ] }, "OptAdd “:无效的 }无效的 }无效的 }