David Blevins created JOHNZON-367:
-------------------------------------
Summary: Show a chunk of json when mapping the object fails
Key: JOHNZON-367
URL: https://issues.apache.org/jira/browse/JOHNZON-367
Project: Johnzon
Issue Type: Improvement
Components: Core, JSON-B, Mapper
Reporter: David Blevins
This appears in a stacktrace like the following
{{}}
{code:java}
javax.json.bind.JsonbException: Can't map JSON Object to class
java.lang.String: {"rendered":"Privacy Policy"}
at org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:89){code}
As per the conversation in the PR, this is being done in a way that avoids
serializing more of the json than necessary.
https://github.com/apache/johnzon/pull/84
--
This message was sent by Atlassian Jira
(v8.20.7#820007)