目錄表
Jackson
Introduction
Articles
Resource
java
,
jackson
Jackson
Introduction
在開發Rest API時,透過Jackson提供的API,將物件轉為json或xml格式。它曾經算是效能最好的函式庫之一,現在就不一定了。
Articles
Jackson - Hello World
From 2.4.5 to 2.7.1
Convert the key fields with special char
@JsonSerialize(keyUsing=KeySerializer.class)
Convert the Date format to ISO8601
@JsonSerialize(using=Serializer.class) @JsonDeserialize(using=Deserializer.class)
Optionally ignore some fields
@JsonIgnore @JsonIgnoreProperties
The visibility of the fields
@JsonAutoDetect
Convert the value fields with special char
@JsonSerialize @JsonDeserialize
DeepClone with Jackson
Resource
How to rename element names?
@JsonProperty(“contractor”)
Jackson FAQ
Jackson Document
Serializing Map<Date, String> with Jackson
Jackson Modules for Map Serialization
The Ultimate JSON Library: JSON.simple vs GSON vs Jackson vs JSONP
Jackson Annotations
View the discussion thread.