Reputation: 1288
I have my Property set like this:
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string TId { get; set; }
I also want to be able to make sure that this is camel cased.
[JsonProperty("tId")]
public string TId { get; set; }
How can I combine these into one?
Upvotes: 0
Views: 1155
Reputation: 711
[JsonProperty(PropertyName = "tId", NullValueHandling = NullValueHandling.Ignore)]
public string TId { get; set; }
Upvotes: 5