I've created my own JSON parser in VB6. Feed it a string, it returns an Object that is a collection of the next level of Objects, each of which is a collection of the next level, etc. Normally I am accessing it with For Each x in Collection. But I need to know if a certain member exists before I bother with looping the rest of that collection. I want to test for existence with something like this:
But that way of dereferencing is not working. Each layer is simply generic Object, not any specific object. If that isn't clear just ask and I'll try and make it clearer. Thanks!Code:If Not Role("Abilities")("PriorityOverride") Is Nothing Then




Reply With Quote
