jObject[] - how to get a paticular value.

Sep 16, 2009 at 11:20 PM
I am trying to get a particular item out of the JObject. I am able to get the value out as long as it is not in an array. Here is an example of values I am trying to get out. I would want to be able to get the id and name out of each of these. What is the best way to be able to do this? For a single object I would type in jObject[key]. But what I am not sure how to do is pull an object out if it is an array. Would I need to pull the entire array and populate an array to be able to do this or could I do something like jObject[parent.id] jObject = { "parent": [ { "id": "12345678908892417651599", "name": "Aaron Benavidez" }, { "id": "88931234567890767888444", "name": "Adalberto Aragon" }, { "id": "88959873924011234567890", "name": "Adan Oliphant" }, { ...
Coordinator
Sep 18, 2009 at 1:04 AM

I don't understand your question.

To get a value out of a JArray you would use its index just like any other array/list in .NET.