Annotation Interface JsonField


@Retention(RUNTIME) @Target(FIELD) public @interface JsonField
Annotation to annotate Fields in a Class which will be converted to a JSONElement Class has to be annotated with JsonSerializableObject for this to work
See Also:
JsonSerializableObject
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Element Details

    • type

      JSONType type
      Returns:
      the type of the element
    • key

      String key
      Returns:
      the name of the element in the JSON Object
      Default:
      ""
    • customType

      String customType
      Returns:
      the type of the element if the type() is JSONType.CUSTOM
      See Also:
      JSONType
      Default:
      ""