You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "David Blevins (Jira)" <ji...@apache.org> on 2022/04/30 23:16:00 UTC

[jira] [Resolved] (JOHNZON-367) Show a chunk of json when mapping the object fails

     [ https://issues.apache.org/jira/browse/JOHNZON-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins resolved JOHNZON-367.
-----------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 1.2.18
>
>
> 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)