Skip to content

Fix MultiJson deprecation warnings in DefaultSerializer - #3076

Open
SergiuLupaiescu wants to merge 1 commit into
elastic:mainfrom
SergiuLupaiescu:fix/multijson-deprecation
Open

SergiuLupaiescu wants to merge 1 commit into
elastic:mainfrom
SergiuLupaiescu:fix/multijson-deprecation

Conversation

@SergiuLupaiescu

Copy link
Copy Markdown

Fixes #3055.

multi_json 1.21 deprecated the MultiJson constant and dump/load in favor of MultiJSON with generate/parse. The default serializer was still referencing the old constant directly, causing deprecation warnings on every serialization call.

Wraps the serializer in a module that checks for MultiJSON and uses the new API when available, falling back to the legacy one for older versions.

@cla-checker-service

Copy link
Copy Markdown

❌ Author of the following commits did not sign a Contributor Agreement:
6b41ec0

Please, read and sign the above mentioned agreement if you want to contribute to this project

@SergiuLupaiescu
SergiuLupaiescu marked this pull request as ready for review October 19, 2026 14:16
@larouxn

larouxn commented Oct 19, 2026

Copy link
Copy Markdown

Noting, alternatively we can completely remove multi_json and oj.

This branch has not been deployed

No deployments
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.

MultiJson deprecation warnings emitted from Elasticsearch::API.serializer with multi_json >= 1.21

2 participants