Based on the excellent MultiJson gem but rather than having
an adapter, it just defines a to_json method which uses the fastest JSON encoder/decoder,
or whatever you decide.
Add this line to your application's Gemfile:
gem 'fast_multi_json'And then execute:
$ bundle
Or install it yourself as:
$ gem install fast_multi_json
Or just drop in the code.
FastMultiJson.to_json(object) # or dump
FastMultiJson.parse(json_string) # TBD, or load- Check out the repo.
- Run
bin/setupto install dependencies. - Run
rake specto run the tests.
To install this gem onto your local machine, run bundle exec rake install.
Bug reports and pull requests are welcome on GitHub at https://github.com/bf4/fast_multi_json.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the FastMultiJson project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.