日期:2014-05-17  浏览次数:21318 次

winfrom json 格式处理取值
[{"order_info":{"order_id":"771","order_sn":"1314426223","type":"","extension":"normal","seller_id":"8026","seller_name":"","buyer_id":"8032","buyer_name":"1231","buyer_email":"2399310686@qq.com","status":"20","add_time":"1369447178","payment_id":"1","payment_name":"","payment_code":"","out_trade_sn":"","pay_time":"1369447181","pay_message":"","ship_time":null,"invoice_no":null,"finished_time":"0","goods_amount":"2324.00","discount":"100.00","order_amount":"2224.00","evaluation_status":"0","evaluation_time":"0","anonymous":"0","postscript":"","pay_method":"0","is_print":"0","sms_code":"","conpon":"100","buyer_info":{"user_id":"8032","user_name":"1231","email":"2399310686@qq.com","password":"4297f44b13955235245b2497399d7a93","real_name":"test","gender":"0","birthday":"0000-00-00","phone_tel":"12312311111","phone_mob":"13031231231","im_qq":"123321","im_msn":"","im_skype":null,"im_yahoo":null,"im_aliww":"","reg_time":"1364814862","last_login":"1370545456","last_ip":"192.168.0.119","logins":"59","ugrade":"0","portrait":null,"outer_id":"0","activation":null,"code":"","audit":"1","alipay_account":"","taobao_shop_url":"","taobao_shop_name":"","is_anonymous":"0","cardID_p1":"\/data\/files\/user_8032\/attest_img\/201304011229381322.jpg","cardID_p2":"","shop_photo":"\/data\/files\/user_8032\/attest_img\/201304011229389124.gif","shop_name":"","cardID_num":"123123123123121233","is_authentication":"1","user_type":"0","operator":"","openid":"","reg_from":"","region_name":"","address":"badsf"},"permissions":[{"code":"ship","title":"  \u53d1   \u8d27  ","btn":"<a href=\"\/JXC\/index.php?s=\/order\/shipping\/order_id\/771\/ret_url\/35D6B7113866865E60F78C4E775890A9\/?height=360;width=390;title=\u53d1\u8d27\" class=\"thickbox\">\u53d1\u8d27<\/a>"},{"code":"cancel","title":"\u53d6\u6d88\u8ba2\u5355"},{"code":"view","title":"\u67e5\u770b\u8ba2\u5355"}]},"store_infos":null,"order_extm_info":{"order_id":"771","consignee":"test","region_id":"2197","region_name":"","address":"badsf","zipcode":"","phone_tel":"123123","phone_mob":"13031231231","shipping_id":"store_promotion_17","shipping_name":"","shipping_fee":"0.00","self_pay_freight":"0","goods_weight":"0.00"},"order_update_logs":null,"order_goods_info":[{"rec_id":"5120","order_id":"771","goods_id":"35532","goods_name":"2013","store_id":"8026","spec_id":"92003","specification":"","price":"166.00","quantity":"14","goods_image":"data\/files\/store_8026\/goods\/111\/small_201304030705118774.jpg","evaluation":"0","comment":"","credit_value":"0","is_valid":"1","art_no":"","status":"20"}],"store_amount":"2324.00"}]






我有这样一组json  我想取里面的值
JSON winfrom c#

------解决方案--------------------

using System.Text;
using System.Runtime.Serialization.Json;
using System.Runtime.Serialization;
using System.IO;

namespace json_解析
{
    class Program
    {
        static void Main(string[] args)
     &nb