title: Could not find MessageBodyWriter for response object of type: java.util.LinkedHashMap of media type: application/json
body: <p>I have this REST service that returns JSON code : </p>
  
  <pre><code>@GET
  @Path("/mypath")
  @Produces(MediaType.APPLICATION_JSON)
  public Response getS() {
      Map&lt;String, String&gt; map = new LinkedHashMap&lt;String, String&gt;();
  
      map.put(key1, val1);
      map.put(key2, val2);
  
      return Response.ok(map, MediaType.APPLICATION_JSON).build();
  }
  </code></pre>
  
  <p>This service is deployed in a Tomcat server. I am using RESTeasy as framework. When trying to access the service, I encounter this:</p>
  
  <blockquote>
    <p>Could not find MessageBodyWriter for response object of type:
    java.util.LinkedHashMap of media type: application/json.</p>
  </blockquote>
  
  <p>I didn't understand what is the problem.</p>
  
  <p>Thanks in advance</p>