Hacker News new | past | comments | ask | show | jobs | submit login

What you describe for JSON is already the case in Go; the stdlib json parser does simply throw out any extra fields on deserialisation.



In fact it's difficult-to-impossible to get the opposite (only json.Decoder supports a strict mode, and as soon as one intermediate type implements UnmarshalJSON it stops getting propagated).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: