Given the json string
var testJson = @"{'entry1': {
'49208118': [
{
'description': 'just a description'
},
{
'description': 'another description'
}
],
'29439559': [
{
'description': 'just a description'
},
{
'description': 'another description'
}
]
}
}";
The array value of the key 49208118 can be retrieved by
var root = JToken.Parse(testJson);
var descriptions = root.SelectTokens("..49208118[*]").ToList();
according to this answer.
But how can the whole substructure under entry1 be parsed into a dictionary
Dictionary<string, JArray> descriptions;
mapping the numerical ids to arrays of JObjects?
var root = d.SelectToken("$..entry1");give you such a dictionary?