简体   繁体   English

如何在Windows Phone中解析此JSON

[英]How to parse This JSON in Windows phone

Please help me parse this JSON using JSON.net in c# JSON DATA 请帮助我在c# JSON DATA中使用JSON.net解析此JSON

Here is Result 这是结果

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

Try this... 尝试这个...

public class Product {

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM