Hello I am in desperate need of some help. I have a json file, with an array of json objects. I cannot figure out how to deserialize it into a list of this object.
using(StreamReader reader = new StreamReader(@"path"))
{
string jsonString = reader.ReadToEnd();
JArray myObj = (JArray)JsonConvert.DeserializeObject(jsonString);
var player = new Player();
player.statsBase = myObj.ToObject>();
}
This is how i finally accomplished it. I'm not sure if the above answers will work for multiple JSON objects in the same file.