We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oj has a very nice Oj.optimize_rails() method that automagically makes Rails use Oj for all it's JSON needs (source: https://github.com/ohler55/oj/blob/develop/pages/Rails.md)
Oj.optimize_rails()
Is there a plan for something as easy to install in Rails for this gem?
The text was updated successfully, but these errors were encountered:
There is no such plan but surely it will be a good addition.
Are you interested in adding it ?
Sorry, something went wrong.
oj is a parser and marshaller. (Oj.load, Oj.dump) fast_jsonparser is a parser only.
FWIW: I threw this monkey patch in an initializer:
module ActiveRecord module Type class Json < ActiveModel::Type::Value def deserialize(value) return value unless value.is_a?(::String) FastJsonparser.parse(value) end end end end
We're decoding huge arrays out of Postgres and saw a 5x improvement. Thank you!
No branches or pull requests
Oj has a very nice
Oj.optimize_rails()
method that automagically makes Rails use Oj for all it's JSON needs (source: https://github.com/ohler55/oj/blob/develop/pages/Rails.md)Is there a plan for something as easy to install in Rails for this gem?
The text was updated successfully, but these errors were encountered: