3

I've got the following JSON string which I have retrieved from a webapi:

[{"WorkOrderID":2,"WorkOrderNumber":1},{"WorkOrderID":3,"WorkOrderNumber":3}]

Now I want to know if there is a way I can deserialize this into a list of type dynamic in VB.NET?

The JSON string could be coming in any format (therefore I cannot deserialize it to a standard class type) and I just need to deserialize it into a list so it can be used a datasource for a grid.

Is this achievable.

Matt
  • 3,305
  • 11
  • 54
  • 98

1 Answers1

2

For VB.Net:

Dim x As Object = JsonConvert.DeserializeObject(of Object)(json)
Jargs
  • 675
  • 3
  • 10
  • 22