- Jackson Basic Information
The Jackson Library (http://jackson.codehaus.org) is a Java-based, open source JSON format parsing tool with 3 jar packages throughout the library:
-
- The jackson-core.jar--core package (required) provides an API based on "stream mode" parsing.
- The jackson-databind--data binding package (optional) provides APIs based on the object binding and tree model.
- jackson-annotations--Annotation Package (optional), provides annotation functionality.
@JsonIgnore This annotation is used on properties or methods, and is ignored when the JSON operation is performed.
@JsonIgnoreProperties This annotation is used for class annotations, where JSON serialization ignores some properties in the Java bean, and if it is a proxy class, it can be marked on the class declaration that the serialization and deserialization are affected because it cannot be marked on a property or method.
@JsonPropertyOrder comments in the class declaration, the effect is to sort the attributes.
@JsonFormat This annotation is used on attributes to convert the date type directly to the desired format, such as @jsonformat (pattern = "Yyyy-mm-dd hh-mm-ss").
@JsonProperty This annotation is used on attributes to serialize the name of the property to another name, such as serializing the Truename property to name, @JsonProperty ("name").
@JsonSerialize Serialization.
@JsonDeserialize deserialization.
Jackson and some common comments (backup)