Less known capability of Ruby's JSON.parse | Arkency Blog
28-Oct-2021 1620
If you ever got annoyed by the fact that JSON.parse returns hash with string keys and prefer hashes with symbols as keys, this post is for you.If you’re a Rails developer, you’re probably familiar with deep_symbolize_keys method in Hash which can help with such case. Especially, in ideal world, where our data structure is a hash, like:.
Less known capability of Ruby's JSON.parse | Arkency Blog #ruby #rubydeveloper #rubyonrails #known #capability #Ruby's #JSON.parse #Arkency #blog https://rubyonrails.ba/link/less-known-capability-of-ruby-s-json-parse-arkency-blog