
com.jsoniter.annotation.JsonObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsoniter Show documentation
Show all versions of jsoniter Show documentation
jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go
package com.jsoniter.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface JsonObject {
/**
* @return 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
*/
String[] unknownPropertiesBlacklist() default {};
/**
* @return if the unknown property is in this list, it will be silently ignored
*/
String[] unknownPropertiesWhitelist() default {};
/**
* @return if true, all known properties will be treated as extra,
* if @JsonExtraProperties not defined, it will be treated as error
*/
boolean asExtraForUnknownProperties() default false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy