Java Preserve JSON message on JsonMappingException
<p>I am trying to log the JSON message that failed the parsing using the com.fasterxml.jackson.databind.ObjectMapper.readValue method:</p>

<pre><code>jsonRequest = mapper.readValue(reader, Request.class);
</code></pre>

<p>On invoking the method above sometimes I get a JsonMappingException.  On catching the JsonMappingException I cannot find the JSON message that failed.</p>

<p>I would need to log the JSON message. Has anyone any idea on how to retrieve the original JSON message?</p>

<p>Thanks</p>