encoding/json: doc on valid key names is outdated #15317
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
On master, the documentation for json.Marshal says:
However, this is quite outdated. The current list of allowed characters consists of letters, digits, space, and these punctuation characters:
!#$%&()*+-./:<=>?@[]^_{|}~
I'm happy to send a Gerrit CL to fix this but am curious about what people think would be better: literally listing this set of characters, or saying something like "most punctuation characters, excluding backslash, quotes, and comma"?
The text was updated successfully, but these errors were encountered: