This is my JSON reply
{
"value":{
"Status":1
"Affected segments":[]
"Message":[]
}
}
But this is what it can be in the future
{
"value":{
"Status":2
"Affected segments":[{a},{b},{c}]
"Message":[
{
"Content": "suhrfuahfuhasufhalushflashlfuhasurhaus",
"Created date": "12/2/21"
},{
"Content": "suhrfuahfuhasufhalushflashlfuhasurhaus",
"Created date": "15/2/21"
},
]
}
}
as you can see in the 1st snippet of code the "status" is 1 to indicate nothing out of the ordinary whereas in the 2nd code snippet the "status" is 2 to indicate a change hence the array is filled.
How would I parse the two of them??