我有我需要從C#訪問的JSON數據。該章節元素看起來是這樣的:如何解析JSON到C#對象?
"chapters": [
[
2,
1416420134.0,
"2",
"546cdb2645b9efbff4582d51"
],
[
1,
1411055241.0,
null,
"541afe8945b9ef69885d3d74"
],
[
0,
1414210972.0,
"0",
"544b259c45b9efb061521235"
]
]
這裏是打算包含這些數據我的C#類:
public class test
{
public string[] chapters { get; set; }
}
public class TChapter
{
public test[] aa { get; set; }
}
我如何解析JSON到C#對象?
看看'Newtonsoft.JSON' – NtFreX
[在C#中解析JSON]可能的副本(https://stackoverflow.com/questions/1212344/parse-json-in-c-sharp) – Darendal
是什麼讓你覺得你的類代表你的json? – maccettura