I am trying to store the one property of my object in a variable and it gives me an error referring to my object does not have a definition for my property.
Error: 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'str'.

This only happens within my project, if I do it within a separate compiler, everything runs correctly and it should be, but I don't understand why I get this error in the project.
https://dotnetfiddle.net/Jf5xQf
The result you are receiving for JObject.Parse is of type JObject. To fetch the str value, you need to use
valorcito = d["str"]; 
You would be interested to read on querying Json with Linq with your current approach.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With