JsonParserFactory Class — spring-boot Architecture
Architecture documentation for the JsonParserFactory class in JsonParserFactory.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/json/JsonParserFactory.java lines 30–47
public abstract class JsonParserFactory {
/**
* Static factory for the "best" JSON parser available on the classpath. Tries
* Jackson, then Gson, and then falls back to the {@link BasicJsonParser}.
* @return a {@link JsonParser}
*/
public static JsonParser getJsonParser() {
if (ClassUtils.isPresent("tools.jackson.databind.ObjectMapper", null)) {
return new JacksonJsonParser();
}
if (ClassUtils.isPresent("com.google.gson.Gson", null)) {
return new GsonJsonParser();
}
return new BasicJsonParser();
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free