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
encoding/json: set key converter on en/decoder #5680
Labels
Milestone
Comments
Even better would be if an encoding could be specified instead of just a key converter type Encoding interface { Encode(key string, value interface{}) (string, interface{}) Decode(key string, value interface{}) (string, interface{}) } That would also allow for custom value encoding, e.g. if time.Time should be converted to a timestamp, or entirely custom types. |
Sorry, the json package is pretty frozen at this point. We need to stop accreting features and options. Everything will be up for reconsideration if/when we do Go 2, though. |
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: