Skip to content

configure json_library to be JSON if defined #6461

Closed

Description

@chrismccord
No description provided.

Activity

  1. saleyn commented on Jun 14, 2026

    @saleyn
    Contributor

    I would love to have the json_library option configurable beyond Jason and json. I am the maintainer of glazer, and believe it would be very beneficial for the Phoenix community to take advantage of more performant JSON parsing libraries when needed.

  2. SteffenDE commented on Jun 15, 2026

    @SteffenDE
    Member

    @saleyn You can configure any library you want as long as it has the same API: https://elixir.hexdocs.pm/JSON.html#functions

    (And I think we don’t event use all those. You can grep the code for json_library().)

    You already have encode and decode, so you’re only missing the iodata variants. Of course you could add a wrapper module that just calls encode in that case, as a binary is iodata, but that might not be as efficient.

  3. rhcarvalho commented on Sep 4, 2026

    @rhcarvalho
    Collaborator

    @SteffenDE this was solved by #6481.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions