Oj gem (Optimized JSON) is a fast JSON parser and Object marshaller as a Ruby gem. OJ gem is faster than the built in Ruby json gem. Oj gem achieves this by implementing the encoding and decoding of JSON in C, as a C extension to Ruby.
The approach taken by both the json gem and ActiveSupport is to push JSON encoding to the individual object and then patching those objects to implement encoding and decoding. Oj gem take a different approach and looks at Ruby objects as data and keeps the endcoding in C instead of going out to each object and encoding in Ruby. This is more of a service of function programming approach to encoding. Learn more.
oj gem is available via the RubyGems package manager.
and customize specifically for your organization
Verified updates for zero-day vulnerabilities, coordinated security responses, and immediate notifications of which of your applications are impacted, with the fix prepared for you. Like your phone, just "apply updates" to stay secure.
Verified-accurate open source licenses (including IP indemnification) and customizable policy enforcement. Your up-to-date software “bill of materials” is always one click away.
Tidelift continuously guides you on your upgrade path, steering you towards the best packages and versions for your particular application. It’s like a GPS for open source software.