我掙扎着從嵌套表收集數據。該列表看起來是這樣的轉換嵌套列表的JSON流
http://jsfiddle.net/Sullan/k7vSg/1/
從這個名單我想創建一個JSON的結果是類似這樣
{
"coreservices":[
{
"title":"Review",
"review":"Quaterly",
"scheduled":[
{
"date1":"February",
"date2":"February 11"
},
{
"date1":"August",
"date2":"August 6"
}
]
},
{
"title":"Analysis",
"review":"Semi-Annually",
"scheduled":[
{
"date1":"March",
"date2":"March 22"
},
{
"date1":"May",
"date2":"May 10"
}
]
}
],
"functions":[
{
"title":"Communication",
"review":"Semi-Annually",
"scheduled":[
{
"date1":"February",
"date2":"February 11"
},
{
"date1":"August",
"date2":"August 6"
}
]
},
{
"title":"Meeting",
"review":"Semi-Annually",
"scheduled":[
{
"date1":"March",
"date2":"March 22"
},
{
"date1":"May",
"date2":"May 10"
}
]
}
]
}
這將是很大的幫助,如果有人指導我如何爲了達成這個。在此先感謝
你想刮HTML生成數據? – 2012-02-23 15:27:46
@Diodeus不,我要提取的數據從HTML JSON。我添加了一些排序和動態添加到列表,基於我必須生成新的json輸出發送到服務器。 – Sullan 2012-02-23 16:25:30