title: Jersey content type customization
body: <p>Hi I've got a scenario where I would like to control the content type return by a jersey web-service dynamically without using request header content-type.</p>
  
  <p>Currently I do the standard thing:</p>
  
  <pre><code>@Produces( {"application/xml", "application/json"}) 
  public ContactsConverter getSearchContacts()
  </code></pre>
  
  <p>So by default I'll get xml back. However, if I want to get a json object back, i'll have to set "Content-Type: application/json" in my request header. This is currently not an option for me because the request is coming from an cross domain ajax call, where the content-type will always be <em>/</em>. So therefore, I'd like to use a flag  in my request or something clever to specify the content-type returned. I've looked around but haven't seen anything helpful, one suggestion is to sent json as the default, but this is something I'd want to avoid doing.</p>