Will jackson support NumberFormat with @JsonFormat

917 views
Skip to first unread message

Yang Yang

unread,
Dec 23, 2016, 5:40:17 AM12/23/16
to jackson-user
I found in jackson-databind project. NumberSerializer is not a ContexturalSerializer that means it cannot interact with @JsonFormat annotation. So I cannot format my BigDecimal with @JsonFormat. I wonder if jackson's future versions will support this feature.

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "#,##0.###")
private BigDecimal money;
Reply all
Reply to author
Forward
0 new messages