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

Add org.apache.johnzon.mapper.SerializeValueFilter hook to allow a programmatic filtering of values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      public interface SerializeValueFilter {
          /**
           * @param name the attribute name if set.
           * @param value the value which will get serialized.
           * @return true if the value should be ignored and not serialized.
           */
          boolean shouldIgnore(String name, Object value);
      }
      

      Idea is to integrate smoothly with some libraries doing some unexpected operations when browsing the object graph. Goal is to bypass the serialization when we know it will happen.

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            romain.manni-bucau Romain Manni-Bucau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: