Skip to content

Support jsoniter to deal with json #1177

Closed

Description

@DarthPestilane

Wanted to make it like go build -tags="jsoniter" which will replace encoding/json with github.com/json-iterator/go.

And I can send a PR if this feature is acceptable.

Activity

  1. vishr commented on Oct 9, 2018

    @vishr
    Member

    @DarthPestilane Before sending a PR can briefly describe potential changes in the code?

  2. DarthPestilane commented on Oct 10, 2018

    @DarthPestilane
    Author

    @vishr I will add a new directory(subpackage) named "json" and change "encoding/json" to "github.com/labstack/echo/json" in import ...

  3. vishr commented on Oct 10, 2018

    @vishr
    Member

    I would refrain from adding a new dependency. Having said that, you can easily extend Context to include your custom JSON codec see https://echo.labstack.com/guide/context

  4. DarthPestilane commented on Oct 10, 2018

    @DarthPestilane
    Author

    @vishr 👍

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions