talira

Compare

MultiJSONOjjson
What it isOne JSON interface for Ruby that picks the fastest available coderA fast JSON parser and Object marshaller as a Ruby gemRuby's JSON parser and generator, shipped with Ruby as a default gem
KindOpen sourceOpen sourceOpen source
Trust0.450.670.62
Stars283228788
Last commit2026-11-202026-11-222026-11-29
LicenceMITMITRuby OR BSD-2-Clause
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API—Yes—
Plugins———
MCP server———
CompanyErik Berlin—Ruby core team
Features
  • one JSON API over several Ruby JSON coders
  • picks the fastest available coder
  • custom adapters
  • parse errors with line and column where the adapter reports them
  • strict, null, compat (json gem), rails, object and custom modes
  • Oj.optimize_rails to replace Rails' JSON encoder and decoder
  • mimic_JSON to take over the JSON constant's methods
  • Oj::Parser, a faster parser with option isolation
  • Oj::Doc for fast access into a parsed document
  • streaming and callback (SAJ, SCP) parsing
  • safe_load and strict_load for untrusted input
  • object mode that round-trips Ruby objects without monkey patching
  • All 10 features
  • JSON.parse and JSON.generate
  • pretty_generate for indented output
  • JSON::Coder for per-call serialization of custom types
  • ascii_only output with \u escapes
  • C extension for CRuby and Java extension for JRuby
Limitations
    • Doesn't run on JRuby: it's a C extension, and JRuby support was removed