title: Is it possible using Jersey/JAX-RS annotations to skip a class member when marshalling to XML/JSON?
body: <p>Pretty straightforward question. I am using Jersey to build a REST system. If I have a class with a value that I need to use during processing but don't want sent as part of the XML or JSON output when the class is marshaled, is there a way to ignore it? Something like:</p>
  
  <pre class="lang-java prettyprint-override"><code>@XmlRootElement(name="example")
  class Example {
      private int a;
      private String b;
      private Object c;
  
      @XmlElement(ignore=true)
      public int getA() { return a; }
      @XmlElement
      public String getB() { return b; }
      @Ignore
      public Object getC() { return c; }
      ... //setters, constructors, etc.
  }
  </code></pre>
  
  <p>I would hope that something like the <code>ignore=true</code> over <code>getA()</code> or the <code>@Ignore</code> over <code>getC()</code> would work, but i can find no documentation.</p>