Skip to content

CBOR: finite-length maps support on ObjectMapper #3679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
martinpaljak opened this issue Nov 21, 2022 · 3 comments
Open

CBOR: finite-length maps support on ObjectMapper #3679

martinpaljak opened this issue Nov 21, 2022 · 3 comments

Comments

@martinpaljak
Copy link

From
FasterXML/jackson#125 (reply in thread)

Would like to specify a feature (or have default behaviour) where serialization with ObjectMapper of simple maps/objects would result in compact/defined length maps with CBOR

@martinpaljak
Copy link
Author

dang this should have gone to -databind ...

@cowtowncoder cowtowncoder transferred this issue from FasterXML/jackson-core Nov 21, 2022
@cowtowncoder
Copy link
Member

cowtowncoder commented Nov 21, 2022

Moved. But also needs to be split across Map case and "POJO" case since these are different implementations.
Splitting can be done if and when someone works on the issue.

Actually come to think of it, there's even 3rd case: that of "Untyped" serialization in which Maps are serialized as-is, without filtering -- this is the easiest case.

Oh well and also 4th one... ObjectNode case of JsonNode. :)
(this is actually the simplest case and easiest to support ASAP)

@cowtowncoder
Copy link
Member

Support for ObjectNode (non-filtering case) added in 2.20 via #5103.

For unfiltered Maps would be doable too but requires some slightly riskier changes (since MapSerializer.serializeWithoutTypeInfo() is public method).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants