Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwrite JSONRender similar to HTMLRender #4041

Open
tylermmorton opened this issue Aug 28, 2024 · 1 comment
Open

Overwrite JSONRender similar to HTMLRender #4041

tylermmorton opened this issue Aug 28, 2024 · 1 comment

Comments

@tylermmorton
Copy link

tylermmorton commented Aug 28, 2024

Description

Similar to this issue and this commit I found, where you can overwrite the HTMLRender method to support custom template engines...

It would be useful to overwrite the JSONRender method so the functionality of the JSON marshaller can be customized for all responses written using c.JSON(). The only alternative is to implement json.Marshaler on each struct type, but I have a lot of response types.

Curious to know if this would be a supported effort, I'm happy to look into implementing this

@JimChenWYU
Copy link

#3391

Maybe you need this feature. But I don't think it will be solved as soon as possible. Because #3766

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

No branches or pull requests

2 participants