I'm working with the Steam Storefront API - http://store.steampowered.com/api/appdetails/?appids=240
I've parsed the JSON into a hash.
When I try to select any hash value nested inside of "data" I receive an "undefined method `[]' for nil:NilClass" error.
I can puts the whole lot with res["240"]["data"] which shows me all of the keys and values. All of which seem to look fine.
However when I try to go one branch further it throws nil.
res["240"]["data"]["type"]
Using .key also throws up an error.
res["240"]["data"].key
My quest to find an answer has mainly found suggestions of searching for the key & values, however I know the direct route to the data so I'd like to go this route if possible.
Thanks.