vb.net 数组的反序列化不支持类型 json

json结构如下:

"[
{
""id"":1,
""globalID"":1,
""time"":""2018-01-26T17:20:51.2512497+08:00"",
""type"":""Starting"",
""data"":
{
}
},
{""id"":2,
""globalID"":2,
""time"":""2018-01-26T17:20:52.7303343+08:00"",
""type"":""StateChanged"",
""data"":
{
""folder"":""W6P7t-T6TZ2"",
""from"":""idle"",
""to"":""scanning""
}
},
{""id"":3,
""globalID"":3,
""time"":""2018-01-26T17:20:52.7303343+08:00"",
""type"":""StateChanged"",
""data"":
{
""folder"":""UVQLv-dkD4s"",
""from"":""idle"",
""to"":""scanning""
}
},
{""id"":4,
""globalID"":4,
""time"":""2018-01-26T17:20:52.7333345+08:00"",
""type"":""StateChanged"",
""data"":
{
""duration"":0.0030002,
""folder"":""W6P7t-T6TZ2"",
""from"":""scanning"",
""to"":""idle""
}
},
{
""id"":5,
""globalID"":5,
""time"":""2018-01-26T17:20:52.7343346+08:00"",
""type"":""StateChanged"",
""data"":
{
""duration"":0.0010001,
""folder"":""W6P7t-T6TZ2"",
""from"":""idle"",
""to"":""syncing""
}
},
{""id"":6,
""globalID"":6,
""time"":""2018-01-26T17:20:52.7343346+08:00"",
""type"":""StateChanged"",
""data"":
{
""duration"":0,
""folder"":""W6P7t-T6TZ2"",
""from"":""syncing"",
""to"":""idle""
}
},
{
""id"":7,
""globalID"":7,
""time"":""2018-01-26T17:20:52.7543357+08:00"",
""type"":""StateChanged"",
""data"":
{
""duration"":0.0240014,
""folder"":""UVQLv-dkD4s"",
""from"":""scanning"",
""to"":""idle""
}
},
{
""id"":8,
""globalID"":8,
""time"":""2018-01-26T17:20:52.7553358+08:00"",
""type"":""StateChanged"",
""data"":
{
""duration"":0.0010001,
""folder"":""UVQLv-dkD4s"",
""from"":""idle"",
""to"":""syncing""
}
},
{
""id"":9,
""globalID"":9,
""time"":""2018-01-26T17:20:52.7553358+08:00"",
""type"":""StateChanged"",
""data"":
{
""duration"":0,
""folder"":""UVQLv-dkD4s"",
""from"":""syncing"",
""to"":""idle""
}
},
{
""id"":10,
""globalID"":10,
""time"":""2018-01-26T17:20:52.7803372+08:00"",
""type"":""StartupComplete"",
""data"":
{
}
]
"
结构多了点,凑活看哈

最外层是List,vb.net如下:

Dim el As List(Of EventEntity) = serializer.Deserialize(Of List(Of EventEntity))(result)


你可能感兴趣的:(json,VB)