Error found in JsonConvert.DeserializeObject:
actions = JsonConvert.DeserializeObject<List<Action>>(response.Content);
public class Input
{
public string name { get; set; }
public string value { get; set; }
public string label { get; set; }
}
here the returned Json from the request
[
{
"name": "firstPageNumber",
"value": "1",
"label": "Start page numbering at"
},
{
"name": "engine",
"value": "localhost1",
"label": "InDesign Server"
},
{
"name": "documentstart",
"value": [
""
],
"label": "Document start"
},
{
"name": "sectionstart",
"value": [
""
],
"label": "Section start"
}
]
As I thought error caused by value property. It have both String and String Array returned. How should I change my Input class to map both of them.