using System.Collections.Generic;
public static void Main()
var options = new JsonSerializerOptions
PropertyNameCaseInsensitive = true
var studentJson = "[{\"id\":1, \"name\":\"Thiago\"},{\"id\":2, \"name\":\"Gilk\"}]";
var students = JsonSerializer.Deserialize<IEnumerable<Student>>(studentJson, options);
foreach (var student in students)
Console.WriteLine($"Student {student.Id} named {student.Name}");
public string Name {get;set;}