title: How Jackson gets to know when to use BeanSerializer and MapSerializer
body: <p>I am having a bean, where Map is being returned in response, and this bean is invoked via REST interface using RESTEasy.</p>
  
  <p>The jackson library is using BeanSerializer(internally) rather than using MapSerializer while sending the response back.</p>
  
  <p>so is there any annotation being used here for letting it know which serializer to use for the bean.</p>
  
  <p>Thanks in advance.</p>