@Target(value={METHOD,CONSTRUCTOR,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Inherited @Documented public @interface JsonCreator
JsonProperty
and
define a name. However Genson is also able to use the names from the method signature, but by
default it is disabled. To enable this feature use
new GensonBuilder().useConstructorWithArguments(true).create();
It will register ASMCreatorParameterNameResolver
name resolver, that will use the debug symbols generated during
compilation to resolve the names.
By default if a object contains constructors and methods annotated with @JsonCreator the factory methods will be privileged.
JsonProperty
,
StandardMutaAccessorResolver
Copyright © 2019. All rights reserved.