so I am trying to parse a JSON response:
{
"success":true,
"rgInventory":{
"7058200129":{
"id":"7058200129",
"classid":"1690096482",
"instanceid":"0",
"amount":"1",
"pos":1
},
"7038515091":{
"id":"7038515091",
"classid":"310776543",
"instanceid":"302028390",
"amount":"1",
"pos":2
},
"6996242662":{
"id":"6996242662",
"classid":"310781169",
"instanceid":"302028390",
"amount":"1",
"pos":3
},
So I need to access the rgInventory to acccess the subsets. The problem is that I try this as my code to parse the JSON:
obj.rgInventory[0]
This normally works for me but it doesn't work this time. The issue is that this is a snippet of the JSON, there are roughly 200 of these responses. How can I parse all of them dynamically?
I only need help getting the data. Thanks!