Annotation Interface JsonMethod


@Retention(RUNTIME) @Target(METHOD) public @interface JsonMethod
Annotation to annotate Method in a Class which will be converted to a JSON Element 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

    • key

      String key
      Returns:
      the name of the element in the JSON Object
    • type

      JSONType type
      Returns:
      the type of the element
    • customType

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