as_json Encoder
A JSON encoder that is tailored to the needs of Rails. The goal is to take advantage of the domain knowledge and speed up the JSON encoding process in Rails applications.
This gem is compatible with Rails 4.1+.
Current Status
At the moment, this is highly experimental. Performance is competitive with the current Rails JSON encoder, but we have not achieved our performance goals yet.
Using this in production is not recommended.
See here for the current state of the encoder's performance.
Installation
Add this line to your Rails application's Gemfile:
gem 'as_json_encoder'
And then execute:
$ bundle
Usage
Simply follow the instructions above to add this to your Gemfile. No further configuration is necessary.
Contributing
- Fork it ( https://github.com/chancancode/as_json_encoder/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request