Annotation Type JsonObject


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface JsonObject
    • Element Detail

      • unknownPropertiesBlacklist

        java.lang.String[] unknownPropertiesBlacklist
        Returns:
        if the unknown property is in this list, it will be treated as extra, if the unknown property is in this list, it will be treated as extra
        Default:
        {}
      • unknownPropertiesWhitelist

        java.lang.String[] unknownPropertiesWhitelist
        Returns:
        if the unknown property is in this list, it will be silently ignored
        Default:
        {}
      • asExtraForUnknownProperties

        boolean asExtraForUnknownProperties
        Returns:
        if true, all known properties will be treated as extra, if @JsonExtraProperties not defined, it will be treated as error
        Default:
        false