I will upload products with API.
The json data that needs to go should be as follows;
"cross": [ { "dynamicName_X" : "123000" }, { "dynamicName_Y" : "456000" }]
I'm doing it with keyvaluepair. It becomes the following with JsonConvert.SerializeObject.
"cross": [ { "Key": "dynamicName_X", "Value": "123000" }, { "Key": "dynamicName_Y", "Value": "456000" } ]
What can I do. What can I do to get it like below when I convert it with JsonConvert.SerializeObject. The cross value must be a list with dynamic parameter names.
"cross": [ { "dynamicName_X" : "123000" }, { "dynamicName_Y" : "456000" }, ]