Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: encoding/json: add options to allow marshalling of ignored JSON fields #29426
Sometimes I find myself wanting to marshal and unmarshal ignored JSON fields (in the general case they should be ignored, but in certain cases they shouldn't). All ways I've come up with to get around this limitation feel kind of clunky, I try very hard to avoid reflection when I can. Feel free to correct me if there is a better solution out there already.
What version of Go are you using (
See my comment here about my concern with the proliferation of top-level