I have json string like this:
{"fields":[{"type":"none","options":["option1","option2","option3"]}]}
I'm using JObject to parse json data. I can parse data that has name, like type, etc. But how can I parse data that doesn't have a name, like option1, option2 and option3? Here is my code:
JObject object = JObject.Parse(jsonString);
var type = object["fields"][0]["type"].ToString();
but problem is with options.
objectas an identifier. If you had posted a short but complete program demonstrating the problem, it would have been easier to help you.