I have an object that I wish to serialize into JSON, but instead of each property having its associated value, I'd rather have each property have its associated type.
For example, I have the following class:
public class Student
{
    public string Name { get; set; }
    public int Age { get; set; }
    public DateTime? DateOfBirth { get; set; }
    public bool IsMarried { get; set; }
}
The resulting JSON I would like to have looks like this
{
    "Student:" {
       "Name": "String",
       "Age": "Int",
       "DateOfBirth": "DateTime",
       "IsMarried": "Boolean"
    }
}
Is there a way that I can setup a JsonSerializer to serialize each property's type instead of its value?
