类 JacksonJsonParser
java.lang.Object
org.springframework.boot.json.AbstractJsonParser
org.springframework.boot.json.JacksonJsonParser
- 所有已实现的接口:
JsonParser
Thin wrapper to adapt Jackson 2
ObjectMapper
to JsonParser
.- 从以下版本开始:
- 1.0.0
- 作者:
- Dave Syer
- 另请参阅:
-
构造器概要
构造器构造器说明Creates an instance with a defaultObjectMapper
that is created lazily.JacksonJsonParser
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates an instance with the specifiedObjectMapper
. -
方法概要
从类继承的方法 org.springframework.boot.json.AbstractJsonParser
parseList, parseMap, trimParse, tryParse
-
构造器详细资料
-
JacksonJsonParser
public JacksonJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates an instance with the specifiedObjectMapper
.- 参数:
objectMapper
- the object mapper to use
-
JacksonJsonParser
public JacksonJsonParser()Creates an instance with a defaultObjectMapper
that is created lazily.
-
-
方法详细资料
-
parseMap
从接口复制的说明:JsonParser
Parse the specified JSON string into a Map.- 参数:
json
- the JSON to parse- 返回:
- the parsed JSON as a map
-
parseList
从接口复制的说明:JsonParser
Parse the specified JSON string into a List.- 参数:
json
- the JSON to parse- 返回:
- the parsed JSON as a list
-