Annotation Interface Json.Property

Enclosing class:
Json

@Retention(CLASS) @Target({FIELD,METHOD,PARAMETER}) public static @interface Json.Property
Customizes the JSON property name for a field, method, or parameter.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The custom property name to use in JSON.
  • Element Details

    • value

      String value
      The custom property name to use in JSON.
      Returns:
      the property name