首页 > 代码库 > json.net

json.net

aspx

 

 var Tbody = $("#PartTable")[0];        
            var data = http://www.mamicode.com/[];
            for (var i = 0; i < Tbody.rows.length; i++) {
                var TempRow = Tbody.rows[i];
                data.push({
                    "OMPKid": TempRow.id,
                    "Price": $(TempRow).find("div")[0].innerHTML,
                    "Remark": $(TempRow).find("div")[1].innerHTML == "&nbsp;" ? "" : $(TempRow).find("div")[1].innerHTML
                });
            }
            $("#JsonValue").val(JSON.stringify(data));

 

cs

   var r = JsonConvert.DeserializeObject<List<OutwardProcessingOrderBs>>(JsonValue.Value);

 

    public class OutwardProcessingOrderBs
    {
          public int OMPKid  { get; set; }
           public Nullable<double> Price { get; set; }
           public string Remark { get; set; }
       
    }