title: How to pass pojo object as parameter to rest web service from prototypejs client
body: <p>How to pass pojo object as parameter to rest web service from prototypejs client. </p>
  
  <p>Assume i have web service like this. </p>
  
  <pre><code>@Path("/postItem")
  @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
  public Item postItem(Item item) 
  {
    return new item;
  }
  </code></pre>
  
  <p>From client side using prototypejs library how to pass pojo object as parameter to rest web service. </p>
  
  <p>If parameter is of type string or integer i would have passed it as query param but it is pojo object in case. 
  <p>I am about the syntax creation of the pojo object and then passing it to rest web service from prototypejs. </p>