{
"id": "zd_tags",
"value": [
"bp_ticket;pazure_server"
]
},
{
"id": "itd_priority_1",
"value": 900
},
{
"id": "impacted_services",
"value": [
"Serverdown0208_2"
]
},
I am unable to read and deserialize the JSON into my objects which throws the below error.
"$.incidentTags[6].value": [
"The JSON value could not be converted to System.String[]. Path: $.incidentTags[6].value | LineNumber: 0 | BytePositionInLine: 1856."
]
Below is my current structure to deserialize it.
public class incidentTag
{
public string id { get; set; }
public string[] value {get;set;}
}
Here is the problem, Some tag has no array " "id": "itd_priority_1" but many have an array of value.
What is the best way to handle this scenario?