Skip to content

Allow use of @JsonFormat(shape=Shape.STRING) for string[], int[], long[] #1242

@cowtowncoder

Description

@cowtowncoder

There is some usage (esp. via Java properties files) where "simple" arrays are expressed as comma-separated lists, like so:

{
   "hosts" : "localhost:8080, otherhost.com:8080"
}

and it would seem reasonable to allow use of Shape.STRING for this.

A related question is that of how to indicate pattern to use; simplest starting point is probably to allow use of pattern to refer to separator to use; and consider "" to either detault to something like [\s*,\s*], or lead to exception for missing pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.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