Comparison with Jackson

Juneau was developed independently from Jackson, but shares many of the same features and capabilities. Whereas Jackson was created to work primarily with JSON, Juneau was created to work for multiple languages. Therefore, the terminology and annotations in Juneau are similar, but language-agnostic.

The following charts describe equivalent features between the two libraries:

##### Annotations

Jackson | Juneau
--- | ---
@JsonGetter @JsonSetter | {@link oaj.annotation.BeanProperty @BeanProperty}
@JsonAnyGetter @JsonAnySetter | {@link oaj.annotation.BeanProperty#name() @BeanProperty(name="*")}
@JsonIgnore @JsonIgnoreType | {@link oaj.annotation.BeanIgnore @BeanIgnore}
@JsonIgnoreProperties({...}) | {@link oaj.annotation.Bean#excludeProperties @Bean(excludeProperties="...")}
@JsonAutoDetect(fieldVisibility=...) | No equivalent annotation, but can be controlled via: {@link oaj.BeanContext#BEAN_beanFieldVisibility} {@link oaj.BeanContext#BEAN_beanMethodVisibility} Future annotation support planned.
@JsonCreator @JsonProperty | {@link oaj.annotation.BeanConstructor @BeanConstructor}
@JacksonInject | No equivalent. Future support planned.
@JsonSerialize @JsonDeserialize | Juneau uses swaps to convert non-serializable object to serializable forms: {@link oaj.annotation.Swap @Swap}
@JsonInclude | No equivalent annotation, but can be controlled via various settings: {@link oaj.BeanContext} {@link oaj.serializer.Serializer} Future annotation support planned.
@JsonPropertyOrder | {@link oaj.annotation.Bean#properties @Bean(properties="...")} {@link oaj.annotation.Bean#sort @Bean(sort=x)}
@JsonValue @JsonRawValue | Can be replicated using swaps with Reader swapped values.