Kong / unirest-ruby

Unirest in Ruby: Simplified, lightweight HTTP client library.
http://unirest.io/ruby
MIT License
364 stars 81 forks source link

Allow JSON response body to use symbols instead of strings #35

Open bobf opened 8 years ago

bobf commented 8 years ago

Ruby stdlib JSON lib provides the configuration option symbolize_names: http://ruby-doc.org/stdlib-2.3.0/libdoc/json/rdoc/JSON.html#method-i-parse

It would be really nice if Unirest provided a configuration option (either default or per-request) to hook into this, removing the need to manually symbolize the keys on the response body.