A summary of data about the Ruby ecosystem.

https://github.com/ohler55/oj

Optimized JSON
https://github.com/ohler55/oj

Keywords

c json json-parser marshaller oj-gem rails ruby ruby-json-parser

Keywords from Contributors

activerecord activejob mvc rubygems rack rspec rubocop ruby-gem code-formatter static-code-analysis

Last synced: about 23 hours ago
JSON representation

Repository metadata

Optimized JSON

README.md

{}j gem

CI
Gem
Gem
TideLift

A fast JSON parser and Object marshaller as a Ruby gem.

Version 3.13 is out with a much faster parser (Oj::Parser) and option isolation.

Using

require 'oj'

h = { 'one' => 1, 'array' => [ true, false ] }
json = Oj.dump(h)

# json =
# {
#   "one":1,
#   "array":[
#     true,
#     false
#   ]
# }

h2 = Oj.load(json)
puts "Same? #{h == h2}"
# true

Installation

gem install oj

or in Bundler:

gem 'oj'

Rails and json quickstart

See the Quickstart sections of the Rails and json docs.

multi_json

Code which uses multi_json
will automatically prefer Oj if it is installed.

Support

Get supported Oj with a Tidelift Subscription. Security updates are supported.

Further Reading

For more details on options, modes, advanced features, and more follow these
links.

Releases

See {file:CHANGELOG.md} and {file:RELEASE_NOTES.md}

Links

Follow @peterohler on Twitter for announcements and news about the Oj gem.

Performance Comparisons

Links of Interest

Contributing

  • Provide a Pull Request off the develop branch.
  • Report a bug
  • Suggest an idea
  • Code is now formatted with the clang-format tool with the configuration file in the root of the repo.

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 1,462
Total Committers: 134
Avg Commits per committer: 10.91
Development Distribution Score (DDS): 0.239

Commits in past year: 49
Committers in past year: 8
Avg Commits per committer in past year: 6.125
Development Distribution Score (DDS) in past year: 0.429

Name Email Commits
Peter Ohler p****r@o****m 1112
Watson w****8@g****m 77
yui-knk s****a@g****m 21
Nick Schonning n****i@g****m 12
Dmitry Krasnoukhov d****y@k****m 10
dependabot[bot] 4****] 9
Stan Hu s****u@g****m 9
Scott Myron s****n@g****m 9
Ville Lautanala l****s@g****m 8
stereobooster s****r@g****m 8
Anton Rieder 1****r 7
Alastair Surin a****n@g****m 6
David Chelimsky d****y@g****m 5
Ulysse Buonomo b****e@g****m 5
Kurtis Rainbolt-Greene me@k****e 5
Duncan MacGregor d****r@o****m 4
Jean byroot Boussier j****b@s****m 4
Mehmet Emin İNAÇ m****c@g****m 4
Andrew Kuklewicz a****w@b****m 3
Chulki Lee c****e@g****m 3
Ian Ker-Seymer i****r@g****m 3
Stefan Kaes s****s@x****m 3
Peter Winton p****n@i****m 2
Omer Katz o****w@g****m 2
Olle Jonsson o****n@g****m 2
Nobuyoshi Nakada n****u@r****g 2
Naveen 1****n 2
Matthias Luedtke m****e@d****e 2
MSP-Greg M****g 2
Jean Boussier j****r@g****m 2
and 104 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 4 days ago

Total issues: 84
Total pull requests: 186
Average time to close issues: 7 months
Average time to close pull requests: 25 days
Total issue authors: 78
Total pull request authors: 35
Average comments per issue: 5.3
Average comments per pull request: 2.03
Merged pull request: 143
Bot issues: 0
Bot pull requests: 14

Past year issues: 17
Past year pull requests: 38
Past year average time to close issues: 20 days
Past year average time to close pull requests: 11 days
Past year issue authors: 17
Past year pull request authors: 10
Past year average comments per issue: 5.53
Past year average comments per pull request: 2.18
Past year merged pull request: 27
Past year bot issues: 0
Past year bot pull requests: 5

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ohler55/oj

Top Issue Authors

  • copiousfreetime (3)
  • fnordfish (2)
  • gschlager (2)
  • KJTsanaktsidis (2)
  • semaperepelitsa (2)
  • carlhoerberg (1)
  • bquorning (1)
  • pjb3 (1)
  • obrie (1)
  • mrbongiolo (1)
  • wlokes (1)
  • jasonpenny (1)
  • okuramasafumi (1)
  • lioneldebauge (1)
  • mrsimo (1)

Top Pull Request Authors

  • Watson1978 (55)
  • nschonni (18)
  • samyron (16)
  • ohler55 (15)
  • dependabot[bot] (14)
  • stanhu (11)
  • meinac (7)
  • byroot (6)
  • jscheid (4)
  • aardvark179 (4)
  • KJTsanaktsidis (2)
  • santiagogeliz (2)
  • kenhys (2)
  • copiousfreetime (2)
  • casperisfine (2)

Top Issue Labels

Top Pull Request Labels

  • dependencies (14)
  • github_actions (7)

Package metadata

gem.coop: oj

The fastest JSON parser and object serializer.

  • Homepage: http://www.ohler.com/oj/
  • Documentation: http://www.rubydoc.info/gems/oj/
  • Licenses: MIT
  • Latest release: 3.16.17 (published 5 days ago)
  • Last Synced: 2026-04-15T06:50:55.514Z (3 days ago)
  • Versions: 292
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 282,805,223 Total
  • Docker Downloads: 1,673,833,241
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.031%
    • Downloads: 0.092%
  • Maintainers (1)
rubygems.org: oj

The fastest JSON parser and object serializer.

  • Homepage: http://www.ohler.com/oj/
  • Documentation: http://www.rubydoc.info/gems/oj/
  • Licenses: MIT
  • Latest release: 3.16.17 (published 5 days ago)
  • Last Synced: 2026-04-14T10:04:53.180Z (3 days ago)
  • Versions: 292
  • Dependent Packages: 965
  • Dependent Repositories: 13,067
  • Downloads: 282,660,418 Total
  • Docker Downloads: 1,673,833,241
  • Rankings:
    • Dependent packages count: 0.05%
    • Docker downloads count: 0.081%
    • Downloads: 0.092%
    • Dependent repos count: 0.302%
    • Average: 0.484%
    • Stargazers count: 0.647%
    • Forks count: 1.731%
  • Maintainers (1)

Dependencies

.github/workflows/CI.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
oj.gemspec rubygems
  • minitest ~> 5 development
  • rake-compiler >= 0.9, < 2.0 development
  • test-unit ~> 3.0 development
.github/workflows/clang-format.yml actions
  • actions/checkout v3 composite
  • jidicula/clang-format-action v4.11.0 composite
Gemfile rubygems
  • minitest ~> 5 development
  • rake-compiler >= 0.9, < 2.0 development
  • rubocop ~> 1.47 development
  • rubocop-minitest ~> 0.28.0 development
  • test-unit ~> 3.0 development
.github/workflows/rubocop.yml.ignore actions
  • actions/checkout v3 composite
  • r7kamura/rubocop-problem-matchers-action v1 composite
  • ruby/setup-ruby v1 composite

Score: 35.0625843327497