Deserialiize

Sep 19, 2014 at 8:28 AM
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?