You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jonathan Oddy edited this page Mar 5, 2014
·
5 revisions
JsonCreator
Used on the constructor or a static method to mark it as the factory method for this object.
It optionally takes a single argument consisting of an array of @JsonProperty annotations, which will be used in specified order as the parameters to the factory/constructor.
When de-serializing the JsonCreator will be called to instantiate the object, and will be passed the specified properties from the JSON.
Parameters
params (JsonProperty[])
The properties to be used as parameters to the annotated method, in order.
Examples
Construct this object using the constructor, with two arguments populated from JSON property "foo" and "bar", respectively.