在jQuery中迭代通过Json.Net序列化的数据表

在jQuery中迭代通过Json.Net序列化的数据表,.net,jquery,json,json.net,.net,Jquery,Json,Json.net,在如何使用Json.Net和以下代码将.NetDataTable序列化为Json字符串方面,我发现了这一绝妙的技巧: return JsonConvert.SerializeObject(dtProdEv, Formatting.Indented); 我得到了以下结果: [ { "Col1": 2, "Col2": "\/Date(1292724000000-0200)\/", "Col3": 0, "Col4": 1, "Col5": "\/D

在如何使用Json.Net和以下代码将.Net
DataTable
序列化为Json字符串方面,我发现了这一绝妙的技巧:

  return JsonConvert.SerializeObject(dtProdEv, Formatting.Indented);
我得到了以下结果:

[
  {
    "Col1": 2,
    "Col2": "\/Date(1292724000000-0200)\/",
    "Col3": 0,
    "Col4": 1,
    "Col5": "\/Date(1292772960760-0200)\/",
    "Col6": null,
    "Col7": null,
    "Col8": 0.0000,
    "Col9": 0,
    "Col10": 1
  },
  {
    "Col1": 2,
    "Col2": "\/Date(1292724000000-0200)\/",
    "Col3": 0,
    "Col4": 2,
    "Col5": "\/Date(1292773781763-0200)\/",
    "Col6": 3,
    "Col7": 1,
    "Col8": 0.0000,
    "Col9": 0,
    "Col10": 2
  }
]
我的问题是如何使用JQuery迭代这个结果?我使用
parseJSON
将其解析为一个对象,但随后我就被难住了。
Tks

您可以使用
$。每个
迭代整个数组

// loop through the array of objects.
$.each(data ,function(i,item){

    // document.write(item["Col7"]); // print specific property


    // loop through the properties of each object.
    $.each(item, function(j, child){

        document.write(child); // print all the childs

    });

});