talira

Compare

Ojjson
What it isA fast JSON parser and Object marshaller as a Ruby gemRuby's JSON parser and generator, shipped with Ruby as a default gem
KindOpen sourceOpen source
Trust0.280.62
Stars—787
Last commit—2026-11-24
LicenceMITRuby OR BSD-2-Clause
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostableYes—
Ways to run it——
SOC 2——
HIPAA——
SSO——
APIYes—
Plugins——
MCP server——
Company—Ruby core team
Features
  • 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