Closed solita-jtn closed 1 year ago
With CBOR module? If there was a setting to force that, it'd be in CBORGenerator.Feature
. But currently I think definite length is only used for Array output where input value's length is known in advance (true for Java arrays, List
s, Set
s.
And possibly Map
s if no filtering is done.
But anything that is serialized in a way that databind does not know in advance number of entries will use indefinite length.
There are issues that request ability to force buffering to allow Definite length for POJOs (where filtering can change number of actual property entries written) but no active work for implementing (PRs welcome etc).
Duplicate of #3 closing.
How to use Definite-Length items instead of Indefinite-length?