title: How to add and ignore a field for json response
body: <p>I'm using RestEasy and hibernate to return response in Jackson.
  I have a bean Player having fields: name, id, age, position.</p>
  
  <p>Now, I'm implementing two <code>GET</code> rest methods for returing json.</p>
  
  <ol>
  <li><p><code>getPlayer()</code>, which is returning a player: name, id, age, position.</p></li>
  <li><p><code>getPlayers()</code>, which is returning a list of players, but with this list of players, i do not want to return position. </p></li>
  </ol>
  
  <p>I mean, how can I add a field for one response and ignore it for another response.</p>
  
  <p>Please suggest.</p>
  
  <p>Thanks</p>