I am using Newtonsoft JSON DLL, to Deserialize a JSON String retrieved from a URL, into a VB.NET Class object. Everything works until I get to the following JSON path:
"breadcrumbs":[
[
"ABC"
],
"DEF",
"GHI",
"JKL"
],
My Class property is as follows:
Private m_breadcrumbs As List(Of List(Of String))
Public Property breadcrumbs() As List(Of List(Of String))
Get
Return m_breadcrumbs
End Get
Set(value As List(Of List(Of String)))
m_breadcrumbs = value
End Set
End Property
I am seeing the following exception: Error converting value "DEF" to type 'System.Collections.Generic.List1[System.String]'
My question is, what can I change in my Class object to allow it to consume this JSON structure? (NOTE: the JSON structure in the example code above is EXACTLY what is being returned in the JSON string.)
List(of String). I am not sure how to get it out of there as such because of the lack of names. You could parse it maybe. What does "ABC" represent?