I am getting intermittent error when executing my .NET C# code. Below is the error.
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JValue' does not contain a definition for 'value'
Below is the code I am using -
dynamic obj = JsonConvert.DeserializeObject(response);
string value = obj.responseObject.value.token;
I am getting this error when I try to execute the above code -
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Newtonsoft.Json.Linq.JValue' does not contain a definition for 'value'
Please, any help is appreciated. Thank you.