title: Jersey role-based entity filtering: Jackson implementation
body: <p>I have been reading the very interesting <a href="https://jersey.java.net/documentation/latest/entity-filtering.html" rel="nofollow">section of the Jersey documentation</a> regarding entity filtering, particularly the section regarding <a href="https://jersey.java.net/documentation/latest/entity-filtering.html#ef.security.annotations" rel="nofollow">role-based filtering</a>. </p>
  
  <p>Unfortunately it looks like the feature is only available when using MOXy and support for Jackson is <a href="https://java.net/jira/browse/JERSEY-2132" rel="nofollow">in the backlog</a> for now.</p>
  
  <p>So I was thinking about giving it a shot and writing the required classes to implement Jackson-based security annotation role-based filtering. This doesn't seem like an easy task. I am guessing I would have to register my own <code>ObjectMapperProvider</code> for Jackson that returns a wrapper for the Jackson <code>ObjectMapper</code> and via "some magic" do the filtering in the wrapper.</p>
  
  <p>Is this a good way to go? Or is there a simpler way?</p>