Hacker GitHub

← All repos

ohler55/oj

View on GitHub ↗ ★ 3,228 C

Optimized JSON

14 mentions on Hacker News by 11 people: 5 stories, 9 comments · first 2012-03-14 · latest 2026-05-13

Mentions per year 14 mentions · busiest year 2025 (3)
20082026
  1. ▲ 5
    False Security
    story by peterohler · 2026-05-13 · 4 comments
  2. …but according to the standard, they're entirely entitled to, and so is Oj. I don't see anything in https://github.com/ohler55/oj/blob/develop/pages/Modes.md#oj... specifying that Strict will force floating points to specific precision vs…
    comment by Twirrim · 2025-01-03 · in Optimizing Ruby's JSON, Part 4
  3. Ah, I figured why on the Oj side `ruby/json` appeared slower: https://github.com/ohler55/oj/pull/949
    comment by byroot · 2025-01-03 · in Optimizing Ruby's JSON, Part 4
  4. > I should point out that other Oj modes perform much better than the JSON gem Which modes are that? https://github.com/ohler55/oj/blob/develop/pages/Modes.md#oj... I tried: Oj.dump(obj, mode: :strict) and a few others and none seemed…
    comment by byroot · 2025-01-03 · in Optimizing Ruby's JSON, Part 4
  5. ▲ 5
    Oj (Ruby) Just Got Faster
    story by peterohler · 2021-08-09 · 2 comments
  6. …idea, but imo it's a bit too complicated solution. [0] https://github.com/procore/blueprinter [1] https://github.com/ohler55/oj
    comment by wrestlerman · 2019-10-12 · in How to write fast code in Ruby on Rails
  7. Don't think it's an order of magnitude faster, but oj is supposed to be the standard for Ruby. https://github.com/ohler55/oj
  8. ▲ 2
    Oj 3.0 Released
    story by peterohler · 2017-04-23 · 1 comment
  9. …There really aren't many practical drawbacks to using it for transport on the same system. [1]: https://github.com/ohler55/oj
  10. ▲ 2
    Oj – high performance json parser for Ruby
    story by sleepyhead · 2014-05-30 · 0 comments
  11. If you want json to be fast in Ruby, chances are you might want to look at https://github.com/ohler55/oj Not sure how easy it is to jam oj into either of these two serializers though. EDIT: rabl seems to support it according to the webpage
    comment by rb2k_ · 2014-05-23 · in Benchmarking JSON Generation in Ruby
  12. It seems like it boils down to use oj[0] as a parser I think... [0] https://github.com/ohler55/oj
    comment by diggan · 2013-07-04 · in XML/JSON parsing trick and benchmark
  13. …not as robust as it needs to be though, it's a shame. I use OJ to speed up the actual JSON render: https://github.com/ohler55/oj
    comment by Breefield · 2013-02-09 · in The performance of .to_json in Rails sucks
  14. ▲ 7
    Screaming fast JSON parsing for Ruby
    story by sferik · 2012-03-14 · 0 comments