Hacker News new | ask | show | jobs
by ericwaller 4281 days ago
Go's JSON parser ignores fields that aren't present in the destination type, so the addition of new parameters shouldn't be a problem.
2 comments

I believe the issue is that new parameters wouldn't be accessible without a library update.
My sense is that the Go developer culture is a lot more open to frequently updating their dependencies than the Java developer culture. Fetching dependencies from git is built into Go, after all.
AFAIK GSON (which stripe-java users) also ignores fields which are not present in the destination type, but the original post was about parameters so that's not even relevant: deserialisation would only be relevant for responses.