@Documented @Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Inherited @PropertyStoreApply(value=JsonConfigApply.class) public @interface JsonConfig
JsonSerializer
and JsonParser
.
Used primarily for specifying bean configuration properties on REST classes and methods.
Modifier and Type | Optional Element and Description |
---|---|
String |
addBeanTypes
Configuration property: Add
|
String |
escapeSolidus
Configuration property: Prefix solidus
|
int |
rank
Optional rank for this config.
|
String |
simpleMode
Configuration property: Simple JSON mode.
|
String |
validateEnd
Configuration property: Validate end.
|
public abstract int rank
Can be used to override default ordering and application of config annotations.
public abstract String validateEnd
If
public abstract String addBeanTypes
If
When present, this value overrides the Serializer.SERIALIZER_addBeanTypes
setting and is
provided to customize the behavior of specific serializers in a SerializerGroup
.
public abstract String escapeSolidus
If
However, if you're embedding JSON in an HTML script tag, this setting prevents confusion when trying to serialize
public abstract String simpleMode
If
Otherwise, they are always quoted.
Attributes do not need to be quoted when they conform to the following:
arguments, break, case, catch, class, const, continue, debugger, default, delete, do, else, enum, eval, export, extends, false, finally, for, function, if, implements, import, in, instanceof, interface, let, new, null, package, private, protected, public, return, static, super, switch, this, throw, true, try, typeof, var, void, while, with, undefined, yield
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.