Given the following class,
public class Result
{
public bool Success
{
get;
set;
}
public string Message
{
get;
set;
}
}
I am returning one of these in a Controller action like so,
return Json(new Result() { Success = true, Message = "test"})
However my client side framework expects these properties to be lowercase success and message. Without actually having to have lowercase property names is that a way to acheive this thought the normal Json function call?