FasterXML / FasterXML/jackson-databind

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

Open
#1,114 22 comments 0 reactions 0 assignees View on GitHub
3.x
Dominant language
Java
Stars
3.7k
Forks
1.5k
Avg merge
3d 6h
Merged PRs (30d)
28

Description

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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.