I have a JSON that looks like
[ { "MobileSiteContent": { "Culture": "en_au", "Key": [ "NameOfKey1" ] } }, { "PageContent": { "Culture": "en_au", "Page": [ "about-us/" ] } } ]
I parse this as a JArray:
var array = JArray.Parse(json);
Then I loop through the array:
foreach (var content in array) { }
content is JToken
How can I get the "name" or "key" of each item?
For example, "MobileSiteContent" or "PageContent"
Alex Jan 08 '14 at 17:18 2014-01-08 17:18
source share