Classic ASP JSON sub collection Classic ASP JSON sub collection json json

Classic ASP JSON sub collection


I was not using the 'data' item enough.

This code:

If Not IsEmpty(this.item("attachments")) Then for each i in this.item("attachments").item("data").item(0).item("subattachments").item("data")  set this2 = this.item("attachments").item("data").item(0).item("subattachments").item("data").item(i)  response.write "here" nextend if

Returns the multiple "here"s I was hoping for. I could also have done a loop within a loop, but as the first collection only had one item in it, I just referenced it using the 0 index.

I should now have no problem digging out the items I need from he subattachments.