I am using JSON.NET library. I have created few JObjects and added them to a JArray.
JArray array = new JArray(); JObject obj = new JObject(); obj.Add(new J
You can find it like this:
JObject jo = array.Children<JObject>() .FirstOrDefault(o => o["text"] != null && o["text"].ToString() == "Two");
This will find the first JObject in the JArray having a property named text with a value of Two. If no such JObject exists, then jo will be null.
JObject
JArray
text
Two
jo