title: Why use REST @Produces annotation
body: <p>So I understand that you are specifying the type, but why? Under what conditions would it matter. For example, if I have the following method, and I comment out the @Produces annotation, it still returns JSON. </p>
  
  <pre><code>@GET
  @Path("/json")
  //@Produces({MediaType.APPLICATION_JSON})
  public String getJson(){
      return toJson(getResults());
  }
  </code></pre>
  
  <p>The API doc says 'If not specified then a container will assume that any type can be produced.' So why would I not want the container to assume that?</p>