Currently, I\'m using Jackson to send out JSON results from my Spring-based web application.
The problem I\'m having is trying to get all money fields to output with
You can use @JsonFormat annotation with shape as STRING on your BigDecimal variables. Refer below:
@JsonFormat
shape
STRING
BigDecimal
import com.fasterxml.jackson.annotation.JsonFormat; class YourObjectClass { @JsonFormat(shape=JsonFormat.Shape.STRING) private BigDecimal yourVariable; }