Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deserialize JSON string into Dynamic List in VB.net

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.

like image 603
Matt Avatar asked Aug 13 '26 16:08

Matt


1 Answers

For VB.Net:

Dim x As Object = JsonConvert.DeserializeObject(of Object)(json)
like image 171
Jargs Avatar answered Aug 16 '26 19:08

Jargs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!