Skip to content

JSON_UNESCAPED_UNICODE #731

Description

@drmax24

Can i set JSON_UNESCAPED_UNICODE for all graphql responses somehow?

Activity

  1. oojacoboo commented on Feb 27, 2025

    @oojacoboo
    Collaborator

    That's not currently possible. However, it may be possible to add via the TheCodingMachine\GraphQLite\Http\WebonyxGraphqlMiddleware::getJsonResponse method. I assume this would be most appropriate as a config option though.

  2. drmax24 commented on Feb 28, 2025

    @drmax24
    Author

    So this will reduce the amount of network traffic slightly in case of a great number of requests, this is feasible.
    Can you add this small feature? Or help me solve this

  3. drmax24 commented on Jun 25, 2025

    @drmax24
    Author

    Any news?..

  4. andrew-demb commented on Jun 25, 2025

    @andrew-demb
    Contributor

    @drmax24 please create a PR to introduce "jsonEncodeOptions" in WebonyxGraphqlMiddleware's constructor.

    If you're using Symfony bundle (graphqlite-bundle) - please create a PR to the bundle repository

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