[Solved] C# JSON Variable Name reserved [closed]


Nodes is a JArray, not a JObject, so cannot be casted as such.

Try this:

        var json = JsonConvert.DeserializeObject<dynamic>(JsonData);
        var nodes = ((JArray)json.Nodes).ToObject<string[]>();

solved C# JSON Variable Name reserved [closed]