title: Change the default REST response to JSON instead XML
body: <p>I'm pretty new with Java REST, I'm currently confused with the response I'm getting from POSTMAN or Chrome is always defaulted to XML and could not change it to JSON unless I remove the XML part. I'm using Jersey 2, Netbeans and Glassfish 4.1.1/4.1</p>
  
  <p>This only returns XML</p>
  
  <pre><code>@Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML})
  </code></pre>
  
  <p>This will return JSON only</p>
  
  <pre><code>@GET
  @Path("loc/{lat}/{long}")
  @Produces({MediaType.APPLICATION_JSON})
  @SuppressWarnings("unchecked")
  //@Produces({MediaType.TEXT_PLAIN})
  public List&lt;Lastknown&gt; findNearMeLastKnown(@PathParam("lat") String lat, @PathParam("long") String longitude) {
      //List&lt;Lastknown&gt; results =;
      return  super.findNearMeLastKnown(lat,longitude);
  
  }
  </code></pre>