"discount_codes":[]
dim dc as jsonitem
dc has empty the discount code array
How do I check to see that the array is empty?
"discount_codes":[]
dim dc as jsonitem
dc has empty the discount code array
How do I check to see that the array is empty?
[code]Dim json As JSONItem = New JSONItem("{"“discount_codes”" : []}")
Dim dc As JSONItem = json.Value(“discount_codes”)
If dc.IsArray Then
If dc.Count = 0 Then
// discount_codes array is empty
Else
// discount_codes array has at least one element
End
Else
// discount_codes is not an array
End[/code]