KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
A web service is returning a hash that contains an unknown number of nested hashes, some of which contain an array, which in turn contains an unknown number of nested hashes. Some of the keys are not unique -- i.e. are present in more than one of the nested hashes. However, all the keys that I actually care about are all unique. Is there someway I can give a key to the top-level hash, and get back it's value even if the key-value pair is buried deep in this morass? (The web service is Amazon Product Advertising API, which slightly varies the structure of the results that it gives depending on the number of results and the search types permitted in each product category.)
Tags (comma-separated)
Save Edits
Cancel