My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Oj – Optimized JSON in Ruby

Oj – Optimized JSON in Ruby

Milica Maksimović's photo
Milica Maksimović
·Apr 25, 2017

The approach taken by both the json gem and ActiveSupport is to push JSON encoding to the individual object and then monkey patching those objects to implement encoding and decoding. Oj 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.