I have a json file like this:
{
"foo": "bar",
"1": 0,
"array": [
"foo",
"bar"
]
}
and I can access "foo" and "1" like this:
using Newtonsoft.Json
JObject o = JObject.Parse(json)
Console.WriteLine((string)o["foo"]) // prints "bar"
Console.WriteLine((int)o["1"]) // prints 0
But how can I access the array? I need a string array string[]
.