title: Resteasy Jackson POST
body: <p>I am trying to do a POST on a webservice using RESTEasy and Jackson for JSON bindings. </p>
  
  <p>My client interface looks like </p>
  
  <pre><code>@Produces("application/json")
  @Consumes(value = MediaType.APPLICATION_JSON)
  public interface MyClientProxy {
  
      @POST
      @Path("/messages/send")
      ClientResponse&lt;FooResponse&gt; send(@QueryParam("foo") Foo foo);    
  }
  </code></pre>
  
  <p>And object Foo is something like:</p>
  
  <pre><code>@JsonIgnoreProperties(ignoreUnknown = true)
  public class Foo implements Serializable {
  
      @JsonProperty
      String bar;
  
      public String getBar() {
          return bar;
      }
  
      public void setBar(String bar) {
          this.bar = bar;
      }
  }
  </code></pre>
  
  <p>But now when I run the test, I can see from the server that I get a POST looking like:</p>
  
  <pre><code>{
      "foo": "com.x.y.Foo@1d75249c"
  }
  </code></pre>
  
  <p>How come the object Foo is not being properly serialized to JSON?</p>