Serialize fixed size Map to CBOR
问题 I have the following JSON: [ { 2: { "c": true } }, { 3: { "p": 10 } } ] That I would like to convert to CBOR format. Accordingly to cbor.me I have the following output: 82A102A16163F5A103A161700A But, when using Jackson Binary CBOR Serializer, I have the following output: 82BF02BF6163F5FFFFBF03BF61700AFFFF Which is not wrong, but not optimized... I have an extra 4 unnecessary bytes added to what it can really be. I've then tried to manually serialize the JSON but same result: @Override public