I can't seem to access an item 0: Watch Experession .
I have tried a number of different ways to access ComID, such as:
ComID = response.Result.PartData.PartList.PartDto.Item(0).ComID OR
ComID = response.Result.PartData.PartList.PartDto.(0).ComID OR
ComID = response.Result.PartData.PartList.PartDto.0.ComID
This works all the way up to PartDto, but I'm just struggling to access Item 0.
My backup solution is to loop through each item in PartDto, which can work, but there's got to be a better way.
Thanks for your help!
responseisresponseTextwhich is a JSON string converted by a library. My answer to Using VBA and VBA-JSON to access JSON data from Wordpress API would probably work.ComID = response.Result.PartData.PartList.PartDto(1).ComIDandComID = response.Result.PartData.PartList.PartDto.Keys()(1).ComIDand neither of those worked.TypeName(response.Result.PartData.PartList.PartDto)return?