forked from json-iterator/java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsonObject.java
More file actions
28 lines (23 loc) · 895 Bytes
/
JsonObject.java
File metadata and controls
28 lines (23 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}