public class TestInfo { [OpenJson("name")] public string Name { get; set; } [OpenJson("description")] public string Description { get; set; } public int Age { get; set; } public bool IsMale { get; set; } public string School { get; set; } public List<Student> Students { get; set; } } public class Student { [OpenJson("name")] public string Name { get; set; } public string Address { get; set; } } // Program: static void Main(string[] args) { var data = OpenJsonSchemaGenerator.CreateJsonSchema(typeof(TestInfo)); Console.WriteLine(data); Console.ReadLine(); }