Forum Discussion
How you 'use' it will ultimately depend on how you're passing it into QB but the actual task of getting to the object itself is just a matter of continuing the JSON path through to the access object. So if in the case of a single user/role you would just have json.qdbapi.user.roles.role.access["@id"] and json.qdbapi.user.roles.role.access["#text"].
In the case of your loop you still do the same thing - just role.access["#text"] or role.access["@id"]
------------------------------
Chayce Duncan
------------------------------
Awesome, that worked. It's so weird, I must have been at it too long because prior to trying to loop everything I had both the access id and access name fields populating. Then for the life of me I couldn't get it to work pre-looping. Probably a silly syntax error... 'name' instead of '#text'.
Either way, thank you! It's all working as expected now
------------------------------
Shane Miller
------------------------------