json-iterator / go

A high-performance 100% compatible drop-in replacement of "encoding/json"
http://jsoniter.com/migrate-from-go-std.html
MIT License
13.43k stars 1.03k forks source link

Error for duplicate fields #575

Open luxas opened 3 years ago

luxas commented 3 years ago

Draft, PoC, PR of how a solution to #573 could look like. I made some other non-related changes too which would need to be submitted in other PRs and removed from here before merging.

This is needed, from what I can see, in Kubernetes: https://github.com/kubernetes/kubernetes/pull/104433.