如何在Windows手机中解析此JSON

时间:2016-05-08 17:57:33

标签: c# json windows-phone

请帮我在c#中使用JSON.net解析这个JSON JSON DATA

这是结果

[{"rescode":0,"policyid":"1","Insuredid":"2606"},
{"rescode":0,"policyid":"2","Insuredid":"2607"},
{"rescode":0,"policyid":"3","Insuredid":"2608"}]

1 个答案:

答案 0 :(得分:0)

试试这个......

public class Product {

    public int Rescode {get;set;}
    public int Policyid {get;set;}
    public int InsuredId {get;set;}

}
Product deserializedProduct = JsonConvert.DeserializeObject<Product>(json);