-
Notifications
You must be signed in to change notification settings - Fork 18k
encoding/json: a way for MarshalJSON to skip marshaling a field? #4554
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
Labels
Milestone
Comments
issue #4357 is for this, via an explicit IsZero and using omitempty. Status changed to Duplicate. Merged into issue #4357. |
i don't think this is duplicate of issue #4357, because custom JSONMarshaler still need a way to skip marshaling the field (sort of IsZero and JSONMarshal combined). I'm just using issue #4357 as an example. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: