Annotation Type JsonIgnore


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface JsonIgnore
    Similar to Jackson JsonIgnore but provides the option to just ignore serialize or deserialize.

    This provides the same features as Expose but from the opposite perspective which is probably more common and more familiar to Jackson users.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean deserialize
      If true, the field marked with this annotation is deserialized from the JSON.
      boolean serialize
      If true, the field marked with this annotation is written out in the JSON while serializing.
    • Element Detail

      • serialize

        boolean serialize
        If true, the field marked with this annotation is written out in the JSON while serializing. If false, the field marked with this annotation is skipped from the serialized output. Defaults to false.
        Default:
        false
      • deserialize

        boolean deserialize
        If true, the field marked with this annotation is deserialized from the JSON. If false, the field marked with this annotation is skipped during deserialization. Defaults to false.
        Default:
        false