I am new in C# please clarify how to parse this JSON. I need to iterate over inner arrays to extract some data. JSON:
{
"p": [{
"p": [{
"p": "Get in ",
"f": [],
"t": "t"
},
{
"p": "test",
"t": "lb",
"id": "Make"
},
....
for example need access to dictionary "{"p": "Get in ", "f": [], "t": "t"}" Do the following:
Dictionary<string, object> result = JsonConvert.DeserializeObject<Dictionary<string, object>>(bodyString);
List<Dictionary<string, object>> itemsArray = result["p"] as List<Dictionary<string, object>>;
foreach(var itemInfo in itemsArray)
{
}
But itemsArray is null.