Annotation Type JsonTypeName


  • @Target({ANNOTATION_TYPE,TYPE})
    @Retention(RUNTIME)
    public @interface JsonTypeName
    Annotation used for binding logical name that the annotated class has. Used with JsonTypeInfo (and specifically its JsonTypeInfo.use() property) to establish relationship between type names and types.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      Logical type name for annotated type.
    • Element Detail

      • value

        java.lang.String value
        Logical type name for annotated type. If missing (or defined as Empty String), defaults to using non-qualified class name as the type.
        Default:
        ""