title: @jsonview of jackson not working with jax-rs
body: <p>I have written following code:</p>
  
  <pre><code>class A{
      public static class Public { }
  }
  
  // Entity class
  public class B{
      @JsonView({A.Public.class}) 
      int a;
      int b;    
  }
  
  public class C{
      @GET
      @Produces(MediaType.APPLICATION_JSON)
      @JsonView({A.Public.class}) 
      public Bed getData(){
          // return object of B
      }
  }
  </code></pre>
  
  <p>I am expecting output as </p>
  
  <pre><code>{a: vlaue}
  </code></pre>
  
  <p>but i am recieving </p>
  
  <pre><code>{a: value, b: value}
  </code></pre>
  
  <p>Please let me know what is wrong in this code.</p>
  
  <p>i am using jackson version 2.4.2</p>