talira

Compare

jsonOj
What it isRuby's JSON parser and generator, shipped with Ruby as a default gemA fast JSON parser and Object marshaller as a Ruby gem
KindOpen sourceOpen source
Trust0.620.28
Stars787—
Last commit2026-11-24—
LicenceRuby OR BSD-2-ClauseMIT
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable—Yes
Ways to run it——
SOC 2——
HIPAA——
SSO——
API—Yes
Plugins——
MCP server——
CompanyRuby core team—
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
  • 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
Limitations
    • Doesn't run on JRuby: it's a C extension, and JRuby support was removed