Annotation Interface Json.SerializeNulls

Enclosing class:
Json

@Retention(CLASS) @Target({TYPE,FIELD,METHOD}) public static @interface Json.SerializeNulls
Controls whether null values are included in JSON output. By default, null values are omitted from JSON output.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether to serialize null values.
  • Element Details

    • value

      boolean value
      Whether to serialize null values.
      Returns:
      true to include nulls, false to omit them
      Default:
      true