ugorji / go

idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
MIT License
1.86k stars 295 forks source link

Docs do not seem to mention case-sensitive field handling #400

Closed extemporalgenome closed 12 months ago

extemporalgenome commented 1 year ago

encoding/json matches struct field names case-insensitively, but this library appears to handle field names case-sensitively.

This will be surprising to some users who are adopting this library with the expectation that much of the behavior (such as json struct tag support) is broadly compatible with the stdlib. This tradeoff should at least be documented.