我在 Windows Phone 8 中解析 JSON 时遇到问题。我有一个像
{"ids":{"internal":[{"type":"ABCD","id":"7BCDCA0676CC8E2F5","time":19376,"asV":"AP_33160"}
,{"type":"ADFP","id":"A2D3D22A6458BC2B","time":19376,"asV":"AP_420TETA"}
]
},
"err":6000,
"msg":"No Msg",
"timeTL":87600
}
我想要有这样的价值观:
string strIds= "{"internal":[{"type":"ABCD","id":"7BCDCA0676CC8E2F5","time":19376,"asV":"AP_33160"},{"type":"ADFP","id":"A2D3D22A6458BC2B","time":19376,"asV":"AP_420TETA"}]}" ;
int err= 6000;
string message= "msg";
int timeTL=87600;
我能够使用 JsonValue 在 Windows 8 上获得所需的结果,但 Windows Phone 8 不支持它。主要问题是“内部”的内容不固定,我想将“ids”的完整值保存到一个字符串。
谢谢!