Skip to content

Support @JsonFormat for String, numbers, using String.format() #1114

Open
@cowtowncoder

Description

@cowtowncoder

Seems like it would be nice to just support formats available via format Strings that String.format() uses.
Note that existing support for date/time values use different formatting; this should be fine, and if we want to for some reason support something from java.text.Format it should be possible to use heuristics to determine intended type of format. However that may not be necessary.

Initially we should just support simple types:

  • java.lang.String
  • int, long, short, byte, float, double and matching wrapper types
  • BigDecimal, BigInteger

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release3.xIssues to be only tackled for Jackson 3.x, not 2.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions