Skip to content

Add new SerializationFeature, WRITE_DATES_WITH_ZONE_ID to be used by Date/Time modules #794

Closed
@cowtowncoder

Description

@cowtowncoder

note: cleaved off of FasterXML/jackson-datatype-jsr310#15 -- check out that discussion more complete view.

There are conflicting goals regarding serialization of timezone id information. For example:

  • ISO-8601 does not define or support use of timezone ids but only timezone offsets. As such, round-tripping of timezone-aware date/time values will lose timezone identity, even if offset itself is retained
  • Some date/time packages do support inclusion and use of timezone ids, above and beyond ISO-8601 notations. But use of such serializations may limit interoperability.

Introduction of this SerializationFeature would allow explicitly choosing between two options, as the global default.

Note: we may also need per-property overrides. But let's tackled that if and when necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions