Annotation Type Field


@Documented
@Retention(RUNTIME)
@Target({FIELD,ANNOTATION_TYPE})
public @interface Field
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    String value
    The actual name of the field inside the JSON document.
  • Element Details

    • value

      String value
      The actual name of the field inside the JSON document. It can be used to shorten or rename/map field names to save space or provide additional compatibility.
      Returns:
      the actual name of the field inside the document.
      Default:
      ""