title: Handle DefaultHandlerExceptionResolver : org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character
body: <p>I'm getting the follow error message</p>
  
  <pre><code>WARN 13712 --- [nio-8080-exec-9] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by handler execution: org.springframework.http.converter.HttpMessageNotReadableException: 
  JSON parse error: Unexpected character (',' (code 44)): expected a value; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (',' (code 44)): expected a value at [Source: java.io.PushbackInputStream@1db33478; line: 2, column: 16]
  </code></pre>
  
  <p>I'm using spring framework like this.</p>
  
  <pre><code>@GetMapping("/access")
  public HashMap&lt;String, Object&gt; getAccess() {
      HashMap&lt;String, Object&gt; response = new HashMap&lt;String, Object&gt;();
      ArrayList&lt;Access&gt; list = new ArrayList&lt;Access&gt;();
      BdConector bd = BdConector.getInstance();
      list = bd.getAllAccess();
  
      if (list != null) {
          response.put("result", "200");
      } else {
          response.put("result", "500");
      }
      response.put("items", list);
      return response;
  }
  </code></pre>
  
  <p>I would like to log the json body-content when a parser exception occurs.</p>