Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Jackson Data Binding Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Databind Source Code files are provided in the source packge (jackson-databind-2.14.0-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Databind Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/databind/json/JsonMapper.java
package com.fasterxml.jackson.databind.json; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.Version; import com.fasterxml.jackson.core.json.JsonReadFeature; import com.fasterxml.jackson.core.json.JsonWriteFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.cfg.MapperBuilder; import com.fasterxml.jackson.databind.cfg.PackageVersion; /** * JSON-format specific {@link ObjectMapper} implementation. * * @since 2.10 */ public class JsonMapper extends ObjectMapper { private static final long serialVersionUID = 1L; /** * Base implementation for "Vanilla" {@link ObjectMapper}, used with * JSON dataformat backend. * * @since 2.10 */ public static class Builder extends MapperBuilder<JsonMapper, Builder> { public Builder(JsonMapper m) { super(m); } public Builder enable(JsonReadFeature... features) { for (JsonReadFeature f : features) { _mapper.enable(f.mappedFeature()); } return this; } public Builder disable(JsonReadFeature... features) { for (JsonReadFeature f : features) { _mapper.disable(f.mappedFeature()); } return this; } public Builder configure(JsonReadFeature f, boolean state) { if (state) { _mapper.enable(f.mappedFeature()); } else { _mapper.disable(f.mappedFeature()); } return this; } public Builder enable(JsonWriteFeature... features) { for (JsonWriteFeature f : features) { _mapper.enable(f.mappedFeature()); } return this; } public Builder disable(JsonWriteFeature... features) { for (JsonWriteFeature f : features) { _mapper.disable(f.mappedFeature()); } return this; } public Builder configure(JsonWriteFeature f, boolean state) { if (state) { _mapper.enable(f.mappedFeature()); } else { _mapper.disable(f.mappedFeature()); } return this; } } /* /********************************************************** /* Life-cycle, constructors /********************************************************** */ public JsonMapper() { this(new JsonFactory()); } public JsonMapper(JsonFactory f) { super(f); } protected JsonMapper(JsonMapper src) { super(src); } @Override public JsonMapper copy() { _checkInvalidCopy(JsonMapper.class); return new JsonMapper(this); } /* /********************************************************** /* Life-cycle, builders /********************************************************** */ public static JsonMapper.Builder builder() { return new Builder(new JsonMapper()); } public static Builder builder(JsonFactory streamFactory) { return new Builder(new JsonMapper(streamFactory)); } public JsonMapper.Builder rebuild() { // 09-Dec-2018, tatu: Not as good as what 3.0 has wrt immutability, but best approximation // we have for 2.x return new Builder(this.copy()); } /* /********************************************************** /* Standard method overrides /********************************************************** */ @Override public Version version() { return PackageVersion.VERSION; } @Override public JsonFactory getFactory() { return _jsonFactory; } /* /********************************************************** /* JSON-specific accessors, mutators /********************************************************** */ // // // 25-Oct-2018, tatu: Since for 2.x these will simply map to legacy settings, // // // we will fake them public boolean isEnabled(JsonReadFeature f) { return isEnabled(f.mappedFeature()); } public boolean isEnabled(JsonWriteFeature f) { return isEnabled(f.mappedFeature()); } }
⏎ com/fasterxml/jackson/databind/json/JsonMapper.java
Or download all of them as a single archive file:
File name: jackson-databind-2.14.0-sources.jar File size: 1187952 bytes Release date: 2022-11-05 Download
⇒ Jackson Annotations Source Code
⇐ Download and Install Jackson Binary Package
2022-03-29, 110700👍, 0💬
Popular Posts:
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...