Deserialize Json from file in C#
问题 I've managed to find a solution without removing the paths from the keys. Thanks for the help guys, and also pointing out problems, I really appreciate it! :) Loaded the Json to a string, deserialized it into a dynamic, ran a foreach through it, and added to a List with ResFiles in it. static void loadJson() { List<ResFile> fileList = new List<ResFile>(); string jsonString = File.ReadAllText(jsonPath); dynamic files = JsonConvert.DeserializeObject(jsonString); foreach (var f in files.objects)