{"response":{"errorCount":0,"orderList":{"order":[{"orderAmount":119,"orderCode":"120914FAYKSR","orderCreateTime":"2012-09-14
16:46:21","orderDeliveryFee":0,"orderId":75483957,"orderNeedInvoice":2,"orderStatus":"ORDER_TRUNED_TO_DO","productAmount":119,"updateTime":"2012-09-14
17:05:13"},{"orderAmount":119,"orderCode":"120914TB23GA","orderCreateTime":"2012-09-14
23:51:25","orderDeliveryFee":0,"orderId":75566567,"orderNeedInvoice":2,"orderStatus":"ORDER_TRUNED_TO_DO","productAmount":119,"updateTime":"2012-09-15
00:08:14"}]},"totalCount":2}}
C# 怎么把这段JSON数据解析为order对象,然后更新到数据库中啊,求教
能写个示例吗
不是有一个 json.net 的 dll,推荐使用这个!
JavaScriptSerializer 反序列化
JavaScriptSerializer
或者
JSON.NET
JavaScriptSerializer
或者
JSON.NET
试试newtonsoft.json