Skip to content

Replace multi_json and oj gems with standard Ruby json gem#2992

Open
larouxn wants to merge 1 commit into
elastic:mainfrom
larouxn:farewell_multi_json
Open

Replace multi_json and oj gems with standard Ruby json gem#2992
larouxn wants to merge 1 commit into
elastic:mainfrom
larouxn:farewell_multi_json

Conversation

@larouxn

@larouxn larouxn commented Jun 19, 2026

Copy link
Copy Markdown

Description

Proposing we remove the multi_json and oj gems in favour of the standard Ruby json gem as it's now as fast or faster in the majority of cases compared to oj. Additionally allows us to simplify code quite a bit too. ✨

Related efforts

Implementation

More or less just a swap and cleanup. Nothing of particular note stands out.

@cla-checker-service

cla-checker-service Bot commented Jun 19, 2026

Copy link
Copy Markdown

💚 CLA has been signed

@larouxn larouxn force-pushed the farewell_multi_json branch from 8b60fef to 8158b11 Compare June 19, 2026 21:44
@danarnold

Copy link
Copy Markdown

This would be nice for another reason: currently, elasticsearch-ruby emits multi_json deprecation warnings with multi_json >=1.21.0 since it uses the MultiJson constant instead of MultiJSON. This would avoid having to make fixes for multi_json like in elastic-transport-ruby elastic/elastic-transport-ruby#112 and elastic/elastic-transport-ruby#125.

@larouxn larouxn force-pushed the farewell_multi_json branch from 8158b11 to f1e2762 Compare June 25, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants