Less known capability of Ruby's JSON.parse | Arkency Blog

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 #blog https://rubyonrails.ba/single/less-known-capability-of-ruby-s-json-parse-arkency-blog

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles