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

Add support for github.com/go-json-experiment/json / UnmarshalerV2 ? #406

Closed
vanackere opened this issue Nov 17, 2023 · 1 comment
Closed

Comments

@vanackere
Copy link
Contributor

Hi,

Opening this issue since I think it would be a good fit for go-codec.

As you may probably be aware, the package github.com/go-json-experiment/json is currently in active development (and a proposal is opened to include it later as encoding/json/v2, see golang/go#63397 for discussion). It defines new MarshalerV2 and UnmarshalV2 interfaces that are supposed to be more efficient.

It would be really nice to have optional support in the codegen tool to generate those methods.

@ugorji
Copy link
Owner

ugorji commented Nov 28, 2023

Looked through the design document.

MarshalerV2 and UnmarshalerV2 are tied to jsontext, and so are not generic interfaces which any other library can implement.

@ugorji ugorji closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants