Skip to content
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

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

Open
cowtowncoder opened this issue May 20, 2016 · 0 comments

Comments

@cowtowncoder
Copy link
Member

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.

LokeshN added a commit to LokeshN/jackson-databind that referenced this issue Sep 6, 2016
LokeshN added a commit to LokeshN/jackson-databind that referenced this issue Sep 6, 2016
LokeshN added a commit to LokeshN/jackson-databind that referenced this issue Sep 6, 2016
@cowtowncoder cowtowncoder added 2.11 and removed 2.9 labels Sep 12, 2019
@cowtowncoder cowtowncoder added 2.12 and removed 2.11 labels Apr 12, 2020
@cowtowncoder cowtowncoder added 2.13 and removed 2.12 labels Oct 27, 2020
@cowtowncoder cowtowncoder removed the 2.13 label Jul 15, 2021
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

1 participant