Skip to content

danlo/oj

This branch is 1 commit ahead of, 81 commits behind ohler55/oj:develop.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f211622 · Mar 24, 2023
Mar 20, 2023
Sep 17, 2021
Mar 19, 2023
Feb 28, 2023
Mar 19, 2023
Jan 9, 2023
Feb 27, 2023
Mar 19, 2023
Aug 8, 2021
Mar 1, 2023
Dec 16, 2021
Mar 2, 2023
Mar 2, 2023
Sep 10, 2021
Mar 24, 2023
Mar 2, 2023
Jan 4, 2015
Feb 27, 2023
Sep 16, 2021
Mar 2, 2023
Oct 16, 2019
Apr 22, 2017
Nov 23, 2016
Nov 1, 2022
Mar 2, 2023

Repository files navigation

{}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.

About

Optimized JSON

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 65.2%
  • Ruby 33.7%
  • Other 1.1%