Skip to content

Add Elixir JSON module based JSON operations#195

Open
Gladear wants to merge 1 commit into
potatosalad:mainfrom
Gladear:add-elixir-json-compat
Open

Add Elixir JSON module based JSON operations#195
Gladear wants to merge 1 commit into
potatosalad:mainfrom
Gladear:add-elixir-json-compat

Conversation

@Gladear

@Gladear Gladear commented Jul 8, 2026

Copy link
Copy Markdown

Since 1.11.11, jose uses the OTP built-in :json module when available for decoding, by default. The issue with this module is that is decodes null as :null, while in Elixir, we would expect it to be nil. A workaround is to force using Jason or Poison, but we would like to start replacing these libraries with Elixir built-in JSON module.

This PR adds a JSON "adapter" for Elixir built-in JSON module. It also enables it by default for the Elixir language, but would be happy to force configure using it through the :json_module option.

@Gladear
Gladear marked this pull request as ready for review July 8, 2026 06:58
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.

1 participant