brianmario/yajl-ruby — Issue #94: Accept :symbolize_names in JSON gem compat mode
Author: niko
Created: 2011-12-28 13:03:01+00:00
State: open

yajl-ruby claims to be compatible with the JSON gem when requiring 'yajl/json_gem'. When parsing it should accept the same options whenever possible. At least :symbolize_keys should be interpreted as :symbolize_names. This is suboptimal IMHO:

```ruby
string = '{"bla": "blub"}'

require 'json'
JSON.parse string, :symbolize_names => true # => {:bla=>"blub"}
JSON.parse string, :symbolize_keys => true # => {"bla"=>"blub"}

require 'yajl/json_gem'
JSON.parse string, :symbolize_names => true # => {"bla"=>"blub"}
JSON.parse string, :symbolize_keys => true # => {:bla=>"blub"}
```