Is there simple way using JSON in .NET to ensure that the keys are sent as lower case?
At the moment I\'m using the newtonsoft\'s Json.NET library and simply using>
you can use "JsonProperty":
Usage:
public class Authority
{
[JsonProperty("userName")] // or [JsonProperty("username")]
public string Username { get; set; }
[JsonProperty("apiToken")] // or [JsonProperty("apitoken")]
public string ApiToken { get; set; }
}
var json = JsonConvert.SerializeObject(authority);