Quantcast
Channel: Json.NET
Viewing all articles
Browse latest Browse all 1767

New Post: Deserialiize

$
0
0
I have these json

{
"user": {
"id": 100,
"status": "ACTIVE", 
"gender": "MALE",
"loyalty": {
  "0": {
    "loyalty_program": {
      "id": 29,
      "title": "General Loyalty Program"
    },
    "join_date": "23-04-2014",
    "expiry_date": null
  },
  "1": {
    "loyalty_program": {
      "id": 22,
      "title": "General Loyalty Program"
    },
    "join_date": "23-04-2014",
    "expiry_date": null
  },
  "3": {
    "loyalty_program": {
      "id": 11,
      "title": "General Loyalty Program"
    },
    "join_date": "23-04-2014",
    "expiry_date": null,
  }
}
}
}

How do I deserialize it into object class in vb.net?

the issue is the tag is 0, 1, 2 (number) and I don't think we have to define all the number one by one. i tried array and list it doesn't work cause can't use index as property name?

Viewing all articles
Browse latest Browse all 1767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>