there is some way to convert a Type to Json. My problem is this:
I have this interface:
public interface IParametersRequestVO{
}
And then i have some objects that implements this interface and i want to get all class that implement this interface and generate a schema json using the type without create the concrete object. This is one of my objects:
public class LoginRequestVO : IParametersRequestVO{
public string Login{ get; set; }
public string Password{ get; set; }
}
When i use the term schema Json i mean this:
var LoginRequestVO = {
Login: "",
Password: ""
}
There is some way to do that ?
Aucun commentaire:
Enregistrer un commentaire