ugorji / go

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

split struct tags #324

Closed thomas-fossati closed 4 years ago

thomas-fossati commented 4 years ago

(This is not an Issue per se. It's more like a newbie question / possible feature request.)

Would it be possible to have "split" struct tags so that map/object keys can be integers when encoded to CBOR and strings when encoded to JSON?

ugorji commented 4 years ago

This is not possible, as the underlying framework for all formats is consistent.