Answer the question
In order to leave comments, you need to log in
How to get value by key in json?
I know it's a stupid question, but I can't get the key by value from this json.
I'm trying to do this with Newtonsoft, but it doesn't work.
var json = JsonConvert.SerializeObject(result);
var title = JObject.Parse(json)["title"];
print(title);
JsonReaderException: Error reading JObject from JsonReader. Current JsonReader item is not an object: String. Path '', line 1, position 456.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question