MappingJacksonJsonView: Recognize Jackson Annotations (ex @JsonSerialize) when returning objects from methods annotated with @ResponseBody [SPR-9297] #13935
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Andrew Muraco opened SPR-9297 and commented
Currently when using MappingJacksonJsonView and the
@ResponseBody
annotation, there isn't a usage-specific way to customize the generated JSON, Jackson allows Mixin and hints for the serializer that influence how Jackson will generate the output. Ideally I want to use these features of Jackson rather then have to reinvent them or do extra glue code to be able to utilize them.Ideally, I would get
Currently, since the MappingJacksonJsonView doesn't recongize the
@JsonSerialize
annotation I getAffects: 3.1 GA
Issue Links:
@JsonSerialize
to be used on@Controller
methods2 votes, 4 watchers
The text was updated successfully, but these errors were encountered: