Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/json: marshal of custom type not quoted when using ",string" tag field #20651
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
The inconsistency can be addressed either by supporting quoting when serializing
Both options have backwards-compatibility issues, as programs are likely to have already worked around the observed behavior.