Package org.springframework.boot.json
Class JacksonJsonParser
java.lang.Object
org.springframework.boot.json.AbstractJsonParser
org.springframework.boot.json.JacksonJsonParser
- All Implemented Interfaces:
- JsonParser
Thin wrapper to adapt Jackson 2 
ObjectMapper to JsonParser.- Since:
- 1.0.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance with a defaultObjectMapperthat is created lazily.JacksonJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates an instance with the specifiedObjectMapper.
- 
Method SummaryMethods inherited from class org.springframework.boot.json.AbstractJsonParserparseList, parseMap, trimParse, tryParse
- 
Constructor Details- 
JacksonJsonParserpublic JacksonJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Creates an instance with the specifiedObjectMapper.- Parameters:
- objectMapper- the object mapper to use
 
- 
JacksonJsonParserpublic JacksonJsonParser()Creates an instance with a defaultObjectMapperthat is created lazily.
 
- 
- 
Method Details- 
parseMapDescription copied from interface:JsonParserParse the specified JSON string into a Map.- Parameters:
- json- the JSON to parse
- Returns:
- the parsed JSON as a map
 
- 
parseListDescription copied from interface:JsonParserParse the specified JSON string into a List.- Parameters:
- json- the JSON to parse
- Returns:
- the parsed JSON as a list
 
 
-