C# class to parse JSON result

Posted by user285677 on Stack Overflow See other posts from Stack Overflow or by user285677
Published on 2011-01-01T19:43:45Z Indexed on 2011/01/01 19:53 UTC
Read the original article Hit count: 140

Filed under:
|

Hi,

How should be a c# class to deserialize the folowing JSON string:

{
   "data": [
  {
 "id" : "id0012",
     "comments": {
        "data": [
           {
              "id": "123",
              "from": {
                 "name": "xpto",
                 "id": "5ddd"
              },
              "message": "tttt",
              "created_time": "2010-01-07T09:16:15+0000"
           },
           {
              "id": "222",
              "from": {
                 "name": "wwwww",
                 "id": "343434"
              },
              "message": "3333",
              "created_time": "2020-07-07T09:30:12+0000"
           }
        ],
        "paging": {
           "previous": "prevlink",
           "next": "nextLink"
        }
     }
  }

] }

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about JSON