Skip to content

Should allow deserialization of java.time types via opaque JsonToken.VALUE_EMBEDDED_OBJECT #3091

@cowtowncoder

Description

@cowtowncoder

Jackson 2.12 added a safety feature #2683 which will block attempts to read/write java.time.* values if no explicit value serializer/deserializer found (which implies Java 8 date/time module is not registered).

While this makes sense on its own, it does have the downside that it is not possible to pass such values as opaque/embedded/POJO values, to use via ObjectMapper.convertValue() for example, or store in JsonNode.
Such use can be useful for some processing pipelines, and seems like it should be allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions