Reputation: 2863
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.
Upvotes: 3
Views: 6860
Reputation: 695
For VB.Net:
Dim x As Object = JsonConvert.DeserializeObject(of Object)(json)
Upvotes: 2