Annotation Type JsonObject


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

    • unknownPropertiesBlacklist

      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

      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