Okay so I have a JSON that is returned from a POST function, but the problem is that the length of the JSON changes, the values are not all in set locations.
For example here is one return: http://pastebin.com/dPt4fSgN
And here is another return: http://pastebin.com/iALUPBTn
Sorry that you have to click links, I didn't know how else to put the long return on here! So what I want to access is "wins" and "losses" in "RankedSolo5x5". These can be accessed in the first return with stats[6].wins
and stats[6].losses
respectively. In the second return, however, the location of this data changes, causing them to be accessible with stats[11].wins
and stats[11].losses
. How would I account for this changing location of data to have it always return what I want, no matter where it is?