I'm hitting a RESTful api and trying to process the returned data. The data itself consists of json arrays within arrays.
{
"category1": [
[
"http://url1",
"URL 1 Title"
],
[
"http://url2",
"URL 2 Title"
]
],
"category2": [
[
"http://url3",
"URL 3 Title"
]
],
"category3": [
[
"http://url4",
"URL 4 Title"
]
]
}
I've created a class that maps to the content above, but I have no idea of how to parse the result and extract the individual URL and URL Titles.
I can see how I might do it if these were objects, but no idea on how to access directly nested arrays.
var objectOfYourClass = JsonConvert.DeserializeObject<YourClass>(jsonString)JSONwill be an object with three properties and not an array with three objects.