With a comprehensive open source management solution like the Tidelift Subscription, organizations can efficiently manage the ways development teams use thousands of open source components across JavaScript, Java, Python, Swift, and Golang. (Beta-compatible with Rust, C#, Ruby, and PHP.) Improve the health, security, and resilience of the open source used in their applications with catalogs of known-good, proactively maintained open source components—backed by maintainers.
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.