首页 新闻 搜索 专区 学院

JSON 问题

0
悬赏园豆:30 [待解决问题]

我得到了JSON字符串,进行反序列化的时候出错。用的是Newtonsoft.Json;

 string tem = kit.get("kdt.item.get", param);//tem保存返回的JSON
       
            rootobject = (SigerGoodsClassPro)JsonConvert.DeserializeObject(tem, (typeof(SigerGoodsClassPro)));//反序列化  
上面的代码出错
错误提示是
Cannot deserialize JSON object into type 'System.Collections.Generic.List`1[

接收到的JSON

{"response":{"item":{"cid":2000000,"promotion_cid":0,"tag_ids":"","detail_url":"https:\/\/shop15609412.koudaitong.com\/v2\/showcase\/goods?alias=2fyxdyspyr230&from=wsc&kdtfrom=wsc","share_url":"https:\/\/shop15609412.koudaitong.com\/v2\/showcase\/goods?alias=2fyxdyspyr230&from=wsc&kdtfrom=wsc","skus":[{"num_iid":283664435,"sku_id":36003076,"sku_unique_code":"28366443536003076","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:1252:\u5c3a\u7801:3XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"1252\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"3XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003077,"sku_unique_code":"28366443536003077","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:34:\u5c3a\u7801:M","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"34\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"M\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":"S10362015"},{"num_iid":283664435,"sku_id":36003078,"sku_unique_code":"28366443536003078","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:4:\u5c3a\u7801:L","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"4\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"L\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003079,"sku_unique_code":"28366443536003079","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:199:\u5c3a\u7801:XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"199\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003080,"sku_unique_code":"28366443536003080","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:985:\u5c3a\u7801:2XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"985\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"2XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003081,"sku_unique_code":"28366443536003081","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:1252:\u5c3a\u7801:3XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"1252\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"3XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":"S10362016"},{"num_iid":283664435,"sku_id":36003082,"sku_unique_code":"28366443536003082","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:34:\u5c3a\u7801:M","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"34\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"M\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"122","outer_id":""},{"num_iid":283664435,"sku_id":36003083,"sku_unique_code":"28366443536003083","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:4:\u5c3a\u7801:L","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"4\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"L\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003084,"sku_unique_code":"28366443536003084","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:199:\u5c3a\u7801:XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"199\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"122","outer_id":""},{"num_iid":283664435,"sku_id":36003085,"sku_unique_code":"28366443536003085","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:985:\u5c3a\u7801:2XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"985\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"2XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""}],"pic_url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg","pic_thumb_url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg!120x120.jpg","num":"1228","sold_num":0,"price":"199.00","post_type":1,"post_fee":"0.00","delivery_template_fee":"0.00","delivery_template_id":0,"delivery_template_name":"","item_imgs":[{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952158","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/55a6bc2201490802e0ab179b7beaaf12.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/55a6bc2201490802e0ab179b7beaaf12.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/55a6bc2201490802e0ab179b7beaaf12.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/55a6bc2201490802e0ab179b7beaaf12.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952155","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8c36ee6405b374f0873bcdccac5e9bf5.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8c36ee6405b374f0873bcdccac5e9bf5.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8c36ee6405b374f0873bcdccac5e9bf5.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8c36ee6405b374f0873bcdccac5e9bf5.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952154","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/64cef568097b5acea03263459093c5e0.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/64cef568097b5acea03263459093c5e0.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/64cef568097b5acea03263459093c5e0.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/64cef568097b5acea03263459093c5e0.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952147","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/579dd0003ee981834c2c8905da1f4c97.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/579dd0003ee981834c2c8905da1f4c97.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/579dd0003ee981834c2c8905da1f4c97.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/579dd0003ee981834c2c8905da1f4c97.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952145","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca539ce6f4130ad8985c2c9314a22eaf.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca539ce6f4130ad8985c2c9314a22eaf.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca539ce6f4130ad8985c2c9314a22eaf.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca539ce6f4130ad8985c2c9314a22eaf.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952139","created":"2016-07-24 16:57:41"}],"item_tags":[],"item_type":0,"is_supplier_item":false,"is_virtual":false,"is_listing":true,"is_lock":false,"is_used":false,"product_type":"0","auto_listing_time":"0","has_component":false,"template_id":-2,"template_title":"\u7b80\u6d01\u6d41\u7545\u7248","join_level_discount":"1","messages":[],"order":0,"purchase_right":0,"ump_tags":[],"ump_level":[],"ump_tags_text":null,"ump_level_text":null,"num_iid":"283664435","alias":"2fyxdyspyr230","title":"HX\u7537\u88c5 \u97e9\u7248\u590d\u53e4\u5b57\u6bcd\u4fee\u8eab\u886c\u886b\u77ed\u8896\u7537 \u65f6\u5c1a\u4e2a\u6027\u5370\u82b1\u7537\u886c\u8863","desc":"<p><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/90801fd56b8635896af6751d141e94b6.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1a7febdf5f756fcdb24d4ee34b0aff94.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ec1703ad50522c5fe53931707ddc6b15.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/a37b47b207cf249b6772c6ea5877e79f.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/d4782ade6e7cd3efe8cc93be3baaf09d.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/93e9f89a9c2485c840fdcea28eb913b3.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/bc1c9d66b00f4fa028dc1fa7b79cb9bc.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca7294eaad0ae52b21caa932f00a5c25.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/995487fe350118d6a90cdb3619b2522a.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/5b20143a5f5116490fd872a1c68d942c.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/54cce8dd654874cf80304334788d9919.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/2d7f4b7fdb2539faae20c11f06409065.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/5a3f3c0489d97ec907a1da290d53e79e.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/a6c87f75ea2a1b163917f497ebd46d99.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/4d0be23241f2a1406cb76c89be98b4cf.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/00da0fcaae491d121fe74a507c4ad65a.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/84cd4769b1764d99421ec4d89fa3db79.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/984621670b931c403036abeae3b35fd0.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8dceda3e36511eca769c450e1ee0ce46.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/c902f176e81a997f3d892b2468a523df.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/b6b1315a53cbab3ddedccb1bd469a11f.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/db80a0c6a4b5abd4eba2ae744d5e5e58.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/663d448fa8b11830fad3710c673022a7.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ad7e01a68f1812a19c61672a432dbfc1.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/804a41979d7dcce0d9dddbaa41761cf4.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/2b7eed4149bde54fdf7d038df5d56e77.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/b751607b1b0b52d7f855675877f060c8.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/73d2faf8ce84d0f6ce5d35b187978a3f.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/9a70e202dab1193621300f4a2daf5edc.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/79ca6a235a268b4599136e6095d6790f.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/c20308122b3a673f2889d0a7b3e5acca.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/3f78f7a80c473b445d00272ae836dfe4.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/01c291a51083a6de8dff8aaaf2efca3a.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/dc1fa089cab402a3bb6fb9ccee2e7008.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/31d924029db07a24a51c28239e4055c5.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/0ae1dbef54ef71f6178bf0e51b29f1b3.png\"\/><\/p>","origin_price":"\u6dd8\u4ef7\uff1a\uffe5199.00","outer_id":"S10362015","outer_buy_url":"http:\/\/item.taobao.com\/item.htm?id=531649864920","buy_quota":"0","created":"2016-07-21 14:03:32"}}}

 

接收JSON类

复制代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace youzanTest
{
    class SigerGoodsClassPro
    {
        public SigerGoodsClassResponse response { get; set; }
    }  

    public class SigerGoodsClassResponse
    {
        public List<SigerGoodsClassItem> item { get; set; }
    }

    public class SigerGoodsClassItem
    {
        public int cid { get; set; }
        public int promotion_cid { get; set; }
        public string tag_ids { get; set; }
        public string detail_url { get; set; }
        public string share_url { get; set; }
        //public Sku[] skus { get; set; }
        public List<SigerGoodsClassSku> skus { get; set; }
        public string pic_url { get; set; }
        public string pic_thumb_url { get; set; }
        public string num { get; set; }
        public int sold_num { get; set; }
        public string price { get; set; }
        public int post_type { get; set; }
        public string post_fee { get; set; }
        public string delivery_template_fee { get; set; }
        public int delivery_template_id { get; set; }
        public string delivery_template_name { get; set; }
        //public Item_Imgs[] item_imgs { get; set; }
        //public Item_Tags[] item_tags { get; set; }
        public List<SigerGoodsClassItem_Imgs> item_imgs { get; set; }
        public List<SigerGoodsClassItem_Tags> item_tags { get; set; }
        public int item_type { get; set; }
        public bool is_supplier_item { get; set; }
        public bool is_virtual { get; set; }
        public bool is_listing { get; set; }
        public bool is_lock { get; set; }
        public bool is_used { get; set; }
        public string product_type { get; set; }
        public string auto_listing_time { get; set; }
        public bool has_component { get; set; }
        public int template_id { get; set; }
        public string template_title { get; set; }
        public string join_level_discount { get; set; }
        //public Message[] messages { get; set; }
        public List<SigerGoodsClassMessage> messages { get; set; }
        public int order { get; set; }
        public int purchase_right { get; set; }
        public object[] ump_tags { get; set; }
        public object[] ump_level { get; set; }
        public object ump_tags_text { get; set; }
        public object ump_level_text { get; set; }
        public string num_iid { get; set; }
        public string alias { get; set; }
        public string title { get; set; }
        public string desc { get; set; }
        public string origin_price { get; set; }
        public string outer_id { get; set; }
        public string outer_buy_url { get; set; }
        public string buy_quota { get; set; }
        public string created { get; set; }
    }

    public class SigerGoodsClassSku
    {
        public int num_iid { get; set; }
        public int sku_id { get; set; }
        public string sku_unique_code { get; set; }
        public string properties_name { get; set; }
        public string properties_name_json { get; set; }
        public int with_hold_quantity { get; set; }
        public string price { get; set; }
        public string created { get; set; }
        public string modified { get; set; }
        public string quantity { get; set; }
        public string outer_id { get; set; }
    }

    public class SigerGoodsClassItem_Imgs
    {
        public string url { get; set; }
        public string thumbnail { get; set; }
        public string medium { get; set; }
        public string combine { get; set; }
        public string id { get; set; }
        public string created { get; set; }
    }

    public class SigerGoodsClassItem_Tags
    {
        public int id { get; set; }
        public int item_num { get; set; }
        public string tag_url { get; set; }
        public string share_url { get; set; }
        public string type { get; set; }
        public string created { get; set; }
        public string desc { get; set; }
        public string name { get; set; }
    }

    public class SigerGoodsClassMessage
    {
        public string multiple { get; set; }
        public string name { get; set; }
        public string type { get; set; }
        public string required { get; set; }
    }



}
复制代码
大蜗牛的主页 大蜗牛 | 初学一级 | 园豆:172
提问于:2016-07-24 16:56
< >
分享
所有回答(4)
0

json字符串呢?错误提示呢?

吴瑞祥 | 园豆:29364 (高人七级) | 2016-07-24 16:58

{"response":{"item":{"cid":2000000,"promotion_cid":0,"tag_ids":"","detail_url":"https:\/\/shop15609412.koudaitong.com\/v2\/showcase\/goods?alias=2fyxdyspyr230&from=wsc&kdtfrom=wsc","share_url":"https:\/\/shop15609412.koudaitong.com\/v2\/showcase\/goods?alias=2fyxdyspyr230&from=wsc&kdtfrom=wsc","skus":[{"num_iid":283664435,"sku_id":36003076,"sku_unique_code":"28366443536003076","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:1252:\u5c3a\u7801:3XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"1252\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"3XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003077,"sku_unique_code":"28366443536003077","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:34:\u5c3a\u7801:M","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"34\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"M\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":"S10362015"},{"num_iid":283664435,"sku_id":36003078,"sku_unique_code":"28366443536003078","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:4:\u5c3a\u7801:L","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"4\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"L\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003079,"sku_unique_code":"28366443536003079","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:199:\u5c3a\u7801:XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"199\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003080,"sku_unique_code":"28366443536003080","properties_name":"16031:187:\u989c\u8272\u5206\u7c7b:\u767d\u8272;12:985:\u5c3a\u7801:2XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"187\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u767d\\u8272\"},{\"kid\":\"12\",\"vid\":\"985\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"2XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003081,"sku_unique_code":"28366443536003081","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:1252:\u5c3a\u7801:3XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"1252\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"3XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":"S10362016"},{"num_iid":283664435,"sku_id":36003082,"sku_unique_code":"28366443536003082","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:34:\u5c3a\u7801:M","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"34\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"M\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"122","outer_id":""},{"num_iid":283664435,"sku_id":36003083,"sku_unique_code":"28366443536003083","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:4:\u5c3a\u7801:L","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"4\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"L\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""},{"num_iid":283664435,"sku_id":36003084,"sku_unique_code":"28366443536003084","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:199:\u5c3a\u7801:XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"199\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"122","outer_id":""},{"num_iid":283664435,"sku_id":36003085,"sku_unique_code":"28366443536003085","properties_name":"16031:3:\u989c\u8272\u5206\u7c7b:\u84dd\u8272;12:985:\u5c3a\u7801:2XL","properties_name_json":"[{\"kid\":\"16031\",\"vid\":\"3\",\"k\":\"\\u989c\\u8272\\u5206\\u7c7b\",\"v\":\"\\u84dd\\u8272\"},{\"kid\":\"12\",\"vid\":\"985\",\"k\":\"\\u5c3a\\u7801\",\"v\":\"2XL\"}]","with_hold_quantity":0,"price":"199.00","created":"2016-07-21 14:03:32","modified":"2016-07-21 14:03:32","quantity":"123","outer_id":""}],"pic_url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg","pic_thumb_url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg!120x120.jpg","num":"1228","sold_num":0,"price":"199.00","post_type":1,"post_fee":"0.00","delivery_template_fee":"0.00","delivery_template_id":0,"delivery_template_name":"","item_imgs":[{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1c5c88cc59447c6b3d85632619a36c8e.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952158","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/55a6bc2201490802e0ab179b7beaaf12.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/55a6bc2201490802e0ab179b7beaaf12.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/55a6bc2201490802e0ab179b7beaaf12.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/55a6bc2201490802e0ab179b7beaaf12.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952155","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8c36ee6405b374f0873bcdccac5e9bf5.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8c36ee6405b374f0873bcdccac5e9bf5.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8c36ee6405b374f0873bcdccac5e9bf5.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8c36ee6405b374f0873bcdccac5e9bf5.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952154","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/64cef568097b5acea03263459093c5e0.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/64cef568097b5acea03263459093c5e0.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/64cef568097b5acea03263459093c5e0.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/64cef568097b5acea03263459093c5e0.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952147","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/579dd0003ee981834c2c8905da1f4c97.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/579dd0003ee981834c2c8905da1f4c97.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/579dd0003ee981834c2c8905da1f4c97.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/579dd0003ee981834c2c8905da1f4c97.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952145","created":"2016-07-24 16:57:41"},{"url":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca539ce6f4130ad8985c2c9314a22eaf.jpg","thumbnail":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca539ce6f4130ad8985c2c9314a22eaf.jpg?imageView2\/2\/w\/290\/h\/290\/q\/75\/format\/jpg","medium":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca539ce6f4130ad8985c2c9314a22eaf.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","combine":"https:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca539ce6f4130ad8985c2c9314a22eaf.jpg?imageView2\/2\/w\/600\/h\/0\/q\/75\/format\/jpg","id":"604952139","created":"2016-07-24 16:57:41"}],"item_tags":[],"item_type":0,"is_supplier_item":false,"is_virtual":false,"is_listing":true,"is_lock":false,"is_used":false,"product_type":"0","auto_listing_time":"0","has_component":false,"template_id":-2,"template_title":"\u7b80\u6d01\u6d41\u7545\u7248","join_level_discount":"1","messages":[],"order":0,"purchase_right":0,"ump_tags":[],"ump_level":[],"ump_tags_text":null,"ump_level_text":null,"num_iid":"283664435","alias":"2fyxdyspyr230","title":"HX\u7537\u88c5 \u97e9\u7248\u590d\u53e4\u5b57\u6bcd\u4fee\u8eab\u886c\u886b\u77ed\u8896\u7537 \u65f6\u5c1a\u4e2a\u6027\u5370\u82b1\u7537\u886c\u8863","desc":"<p><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/90801fd56b8635896af6751d141e94b6.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/1a7febdf5f756fcdb24d4ee34b0aff94.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ec1703ad50522c5fe53931707ddc6b15.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/a37b47b207cf249b6772c6ea5877e79f.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/d4782ade6e7cd3efe8cc93be3baaf09d.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/93e9f89a9c2485c840fdcea28eb913b3.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/bc1c9d66b00f4fa028dc1fa7b79cb9bc.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ca7294eaad0ae52b21caa932f00a5c25.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/995487fe350118d6a90cdb3619b2522a.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/5b20143a5f5116490fd872a1c68d942c.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/54cce8dd654874cf80304334788d9919.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/2d7f4b7fdb2539faae20c11f06409065.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/5a3f3c0489d97ec907a1da290d53e79e.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/a6c87f75ea2a1b163917f497ebd46d99.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/4d0be23241f2a1406cb76c89be98b4cf.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/00da0fcaae491d121fe74a507c4ad65a.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/84cd4769b1764d99421ec4d89fa3db79.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/984621670b931c403036abeae3b35fd0.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/8dceda3e36511eca769c450e1ee0ce46.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/c902f176e81a997f3d892b2468a523df.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/b6b1315a53cbab3ddedccb1bd469a11f.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/db80a0c6a4b5abd4eba2ae744d5e5e58.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/663d448fa8b11830fad3710c673022a7.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/ad7e01a68f1812a19c61672a432dbfc1.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/804a41979d7dcce0d9dddbaa41761cf4.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/2b7eed4149bde54fdf7d038df5d56e77.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/b751607b1b0b52d7f855675877f060c8.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/73d2faf8ce84d0f6ce5d35b187978a3f.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/9a70e202dab1193621300f4a2daf5edc.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/79ca6a235a268b4599136e6095d6790f.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/c20308122b3a673f2889d0a7b3e5acca.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/3f78f7a80c473b445d00272ae836dfe4.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/01c291a51083a6de8dff8aaaf2efca3a.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/dc1fa089cab402a3bb6fb9ccee2e7008.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/31d924029db07a24a51c28239e4055c5.png\"\/><img src=\"http:\/\/img.yzcdn.cn\/upload_files\/2016\/07\/21\/0ae1dbef54ef71f6178bf0e51b29f1b3.png\"\/><\/p>","origin_price":"\u6dd8\u4ef7\uff1a\uffe5199.00","outer_id":"S10362015","outer_buy_url":"http:\/\/item.taobao.com\/item.htm?id=531649864920","buy_quota":"0","created":"2016-07-21 14:03:32"}}}

支持(0) 反对(0) 大蜗牛 | 园豆:172 (初学一级) | 2016-07-24 17:17
0
感觉问题描述的不清楚。
坤坤 | 园豆:919 (小虾三级) | 2016-07-25 11:20
0

我建议你搞条数据 先用 序列化 生成 json 字符串。。 和你现有json 数据对比下格式。、。

Постой! | 园豆:829 (小虾三级) | 2016-07-25 17:16
0

貌似json字符串有问题吧?

可以到:http://www.jsonin.com/   这个验证一下。

chengeng | 园豆:294 (菜鸟二级) | 2016-07-26 15:45
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册