I've declared the below key:value pair in JSON:
"saleParameters": [
{"saleName":"FlashSale2018"},
]
I'm mapping the above using the below property in my contract class:
[JsonProperty("saleParameters")]
public IEnumerable<KeyValuePair<string,string>> SaleParameters { get; set; }
But for some reason, I always receive null values in SaleParameters after deserialization. I'm using NewtonSoft.JSON for JSON serialize/deserialize, code is running on .net core.
Any idea on why this is happening and how to solve this ?