All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jsoniter.annotation.JsonObject Maven / Gradle / Ivy

Go to download

jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go

There is a newer version: 0.9.23
Show newest version
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