Hi there,
I am using MappingJacksonHttpMessageConverter
in spring mvc to automatically serialize objects like this:
@RequestMapping(value="/*/getAccount", method=RequestMethod.GET)
@ResponseBody
public Account getAccountAction() {
Account account = accountService.getAccount();
return account;
}
Is it possible to configure which properties of the object are serialized? In my example Account has 3 collections as properties and serializing all these contents would result in a huge object tree. Here I only want to return the flat object.
Sincerely, Erik