我从API获取此json。string json = "{'serviceSession':{ '123123123':[{'apn':'abc'},{'apn':'bcd'},{'apn':'def'}]}}";当我尝试将其反序列化时public class ServiceSession{ public Dictionary<string, List<ServiceSessionType>> ServiceSessions { get; set; }}public class ServiceSessionType{ public string Apn { get; set; }}和var test = JsonConvert.DeserializeObject<ServiceSession> (json);我越来越空了。怎么了?有任何想法吗?
1 回答
- 1 回答
- 0 关注
- 124 浏览
添加回答
举报
0/150
提交
取消