Adds a pure-ruby variant for parsing streaming responses and a simple interface for adding custom parsing backends. There's a spec suite that tests single document and streaming response parsing for both backends.
The Util.deep_transform_keys method was added to avoid stringifying hash keys via JSON.parse(JSON.dump(hash)) which while clever and clean, is a bit lazy way to do it.
Fixes #126
Adds a pure-ruby variant for parsing streaming responses and a simple interface for adding custom parsing backends. There's a spec suite that tests single document and streaming response parsing for both backends.
To use the faster YAJL backend, use:
The
Util.deep_transform_keys
method was added to avoid stringifying hash keys viaJSON.parse(JSON.dump(hash))
which while clever and clean, is a bit lazy way to do it.