I have a JSON object with this structure:
{
"customLineItemParameters": [
{"paramName1": "value1"},
{"paramName2": "value2"},
{"paramName3": "value3"}
]
}
My model property looks like this:
List<Tuple<string, string>> CustomLineItemParameters { get; set; }
When trying to deserialise the JSON object, I get a list of three tuples, but the tuple values are empty:
[0] -> {(, )}
[1] -> {(, )}
[2] -> {(, )}
How should my model look in order to properly deserialize the json? (I can't change the json structure).
List<KeyValuePair<string, string>>orDictionary<string,string>keyandvalueproperties are required, notbsure though