skip to Main Content

Issue while converting Json to List of objects

I'm trying to convert Json file to C# list of objects. However I encounter a problem while converting the json file. My attempt: List<Root> array = JsonConvert.DeserializeObject<List<Root>>(json); Error: Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[ConsoleApp1.Root]'…

VIEW QUESTION
Back To Top
Search