Deserializing JSON String to VB.net Object

后端 未结 2 1550
小蘑菇
小蘑菇 2021-01-18 14:43

I\'m trying to convert a JSON String into an VB.net Object to get easy access to alle the data in the JSON String.

My JSON String looks like this:

{
         


        
2条回答
  •  逝去的感伤
    2021-01-18 15:12

    You're close; you've got your parentheses in the wrong place. In your Rootobject class, change this line:

    Public Property data() As Datum
    

    to this:

    Public Property data As Datum()
    

    Or, this will also work:

    Public Property data As List(Of Datum)
    

提交回复
热议问题