Deserialize JSON with C#

前端 未结 10 1458
一生所求
一生所求 2020-11-21 05:57

I\'m trying to deserialize a Facebook friend\'s Graph API call into a list of objects. The JSON object looks like:

{\"data\":[{\"id\":\"518523721\",\"name\"         


        
10条回答
  •  臣服心动
    2020-11-21 06:15

    A great way to automatically generate these classes for you is to copy your JSON output and throw it in here:

    http://json2csharp.com/

    It will provide you with a starting point to touch up your classes for deserialization.

提交回复
热议问题