I’m connecting to a service using ServiceStack that I have no control on:
I have a DTO like:
public class Request
{
public string Property1 { get; set; }
}
But the service is expecting a request like {"Property 1":"value"} note the space between the word Property and the 1. Is there an attribute that I can use to set the name to the property that gets transmitted to the server? Something like the following would be helpful:
public class Request
{
[Name("Property 1")]
public string Property1 { get; set; }
}
Pull Request #51 Added the following as a result of this issue request.