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
encoding/json: Sequential Key Casing #23726
What version of Go are you using (
@andreidorin13 don't ignore error from json.Unmarshal — it's non-nil here:
As I see it the real caveat here is presence of
Please see the illustration here: https://play.golang.org/p/A9OXJRX4LlL
I believe that in presence of two or more attributes whose names differ only by case the preferring an exact match clause of json.Unmarshal doesn't hold — it seem to always use the value from the last attribute it encounters.