项目作者: techguy-bhushan

项目描述 :
Play around jackson library
高级语言: Java
项目地址: git://github.com/techguy-bhushan/Json-With-Jackson.git
创建时间: 2017-09-16T12:17:25Z
项目社区:https://github.com/techguy-bhushan/Json-With-Jackson

开源协议:

下载


Json-With-Jackson

Play around basics of Jackson and on getting JSON
serialized and deserialized efficiently and with flexibility.

Basic Notes:

  • Dealing with Unknown Fields on the ObjectMapper
    We can now configure the full ObjectMapper to ignore unknown properties in the JSON:
    new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
  • We can also mark a single class as accepting unknown fields, instead of the entire Jackson
    ObjectMapper:
    @JsonIgnoreProperties(ignoreUnknown = true)
    public class ClassIgnoreUnknown { … }