Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Jackson

upan edited this page Jan 23, 2017 · 4 revisions

Jackson 概述

Jackson 是一个基于Java的Json处理框架,可以方便的处理Java对象和Json字符串之间的序列化和反序列化。 Jackson有1.x系列和2.x系列,在不同的包下面,如果项目同时引用了这两个系列,需要注意注解只针对同一系列有效。

  • 1.x :org.codehaus.jackson.xx
  • 2.x :com.fasterxml.jackson.xx

Jackson2.3及之前版本的官方wiki http://wiki.fasterxml.com/JacksonHome,最后维护时间为2014年。

Jackson2.x 基于Github官方文档合集 https://github.com/FasterXML/jackson-docs

各个组件的文档 https://github.com/FasterXML/jackson-core/wiki https://github.com/FasterXML/jackson-docs/wiki/JacksonAnnotations https://github.com/FasterXML/jackson-databind/wiki/Databind-Annotations

2.x 组件及分工

Jackson-Core

Jackson-Core contains streaming parser, generator

Jackson Annotations

Jackson Annotations for annotation-based configuration (used by data-bind)

Jackson databind

Jackson databind for data binding, tree model (builds on streaming core)

使用场景

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /