Skip to content

Add new option, JsonInclude.Include.NON_ABSENT #811

@cowtowncoder

Description

@cowtowncoder

(note: moved from https://github.com/FasterXML/jackson-datatype-jdk8/issues/8)


Between existing options NON_NULL and NON_EMPTY, it would be good to have option that:

  1. Excludes nulls (like both of above), but also
  2. Excludes values of "referential types" that are considered empty (absent), that is, resolve to null
  3. Do NOT exclude other "empty" values (like collections)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions