我試圖dezerialize數組,但我不斷遇到錯誤。類型不支持數組的反序列化
JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();
Profiles thingy = jsonSerializer.Deserialize<Profiles>(fileContents);
這是給我的錯誤代碼:
Type is not supported for deserialization of an array.
這是我的JSON的樣子:
[
{
"Number": 123,
"Name": "ABC",
"ID": 123,
"Address": "ABC"
}
]
非常感謝:D – user3478897 2014-09-03 21:56:48