I\'m parsing a JSON string using the NewtonSoft JObject. How can I get values from a dynamic object programmatically? I want to simplify the code to not repeat myself for ev
Another way of targeting this is by using SelectToken (Assuming that you're using Newtonsoft.Json):
SelectToken
Newtonsoft.Json
JObject json = GetResponse(); var name = json.SelectToken("items[0].name");
For a full documentation: https://www.newtonsoft.com/json/help/html/SelectToken.htm