我在Silverlight
中为windows phone发出了一个web请求。这是答复。json字符串反序列化困难
{"result": {
"account": null,
"checkInfo": null,
"command": null,
"shifts": [
{
"description": "17:45 - 17:55 work shift",
"id": 5459,
"venueId": 132
}]}}
我使用Newtonsoft.Json.dll
,我的目的是为了赶上数组转换。
JObject obj = JObject.Parse(StringShifts);
JArray sh = (JArray)obj["shifts"];
但每次sh
值null
。我做错了什么?先谢谢你。
这是确切的回应?我问你是否错过了最后的大括号。 –