I have a JSON file with the following data:
{
"users": {
"xyz ": {
"Name": "abc ",
},
"x ": {
"Name": "xy ",
},
"abc": {
"Name": "ijk",
},
}
}
I deserialize the JSON file in C# to a dynamic data type by following code:
dynamic keys = JsonConvert.DeserializeObject(File.ReadAllText(path));
Now I wanna retrieve the name of keys present inside the child of users.
I want the following output:
xyz
x
abc
How can I list the name of the keys?