Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-367

Show a chunk of json when mapping the object fails

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.2.18
    • Core, JSON-B, Mapper
    • None

    Description

      This appears in a stacktrace like the following
      {{}}

      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)

       

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: