org.springframework.boot.config
Class JsonParserFactory
java.lang.Object
org.springframework.boot.config.JsonParserFactory
public abstract class JsonParserFactory
- extends Object
Factory to create a JsonParser.
- Author:
- Dave Syer
- See Also:
JacksonJsonParser,
YamlJsonParser,
SimpleJsonParser
|
Method Summary |
static JsonParser |
getJsonParser()
Static factory for the "best" JSON parser available on the classpath. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonParserFactory
public JsonParserFactory()
getJsonParser
public static JsonParser getJsonParser()
- Static factory for the "best" JSON parser available on the classpath. Tries Jackson
2, then Snake YAML, and then falls back to the
SimpleJsonParser.
- Returns:
- a
JsonParser
Copyright © 2013. All Rights Reserved.