Annotation Interface ZsonField


@Target(FIELD) @Retention(RUNTIME) public @interface ZsonField
ZsonField is an annotation that can be used to specify properties about a field in a class that is being serialized or deserialized to ZSON.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
     
    boolean
     
  • Element Details

    • comment

      String comment
      Returns:
      a comment that describes this field, to be included in the ZSON output.
      Default:
      "\u0000"
    • include

      boolean include
      Returns:
      whether to include this field when (de)serializing, even if it is private or static.
      Default:
      false
    • exclude

      boolean exclude
      Returns:
      whether to exclude this field when (de)serializing.
      Default:
      false