I have an API response in JSON structure as follows:
{“items”:[
{“id”:“1001”,“productName”:“Product 1”,“quantity”:1},
{“id”:“1002”,“productName”:“Product 2”,“quantity”:23},
{“id”:“1003”,“productName”:“Product 3”,“quantity”:446}]}
I want to extract the productname and quantity from id:1002.
I get as far as:
Var json As New JSONItem
Var s As string
Try
json.Load(content)
Catch error As JSONException
MessageBox("JSON Error: “+error.ErrorNumber.ToString+” "+error.Message)
end
s = JSONItem(json.Value(“items”)…
and can’t figure out where to go from here.
Shake your head, roll your eyes, pity me, but throw me a bone here and help me over this learning threshhold.