I\'m trying to build an API wrapper gem, and having issues with converting hash keys to a more Rubyish format from the JSON the API returns.
The JSON contains multip
If you're using the active_support library, you can use deep_transform_keys! like so:
hash.deep_transform_keys! do |key| k = key.to_s.snakecase rescue key k.to_sym rescue key end