v4.2.x: Switch CLI tools to Thoas for JSON serializer#15966
Merged
michaelklishin merged 2 commits intov4.2.xfrom Apr 9, 2026
Merged
v4.2.x: Switch CLI tools to Thoas for JSON serializer#15966michaelklishin merged 2 commits intov4.2.xfrom
v4.2.x: Switch CLI tools to Thoas for JSON serializer#15966michaelklishin merged 2 commits intov4.2.xfrom
Conversation
…lugins Elixir 1.18+ introduces a standard library JSON module which conflicts with the `json` library we've been using in CLI tools for `--formatter=json` and such. Since the two Elixir versions are not compatible and we have reasons to not bump Elixir too aggressively just yet, the most pragmatic option was to switch CLI tools to use `thoas`, the Erlang JSON parser RabbitMQ core and HTTP API use. This unblocks Dialyzer runs in four plugins disabled about 10 months ago and reveals a `rabbitmq_mqtt` Dialyzer failure due to a field that was removed from a record but not its type spec. Due to the MQTT plugin issue above, this can only be backported to `v4.3.x`, a `v4.2.x` version will need some tweaks. (cherry picked from commit b4ed713)
at least as closely as practical for RabbitMQ's needs. (cherry picked from commit ff97d99)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a
v4.2.x-specific version ofmain)v4.3.x, a clean backport)