Package org.springframework.boot.json
Class JsonParserFactory
java.lang.Object
org.springframework.boot.json.JsonParserFactory
Factory to create a
JsonParser
.- Since:
- 1.0.0
- Author:
- Dave Syer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonParser
Static factory for the "best" JSON parser available on the classpath.
-
Constructor Details
-
JsonParserFactory
public JsonParserFactory()
-
-
Method Details
-
getJsonParser
Static factory for the "best" JSON parser available on the classpath. Tries Jackson, then Gson, and then falls back to theBasicJsonParser
.- Returns:
- a
JsonParser
-