public class JacksonJsonParser extends AbstractJsonParser
ObjectMapper to JsonParser.JsonParserFactory| Constructor and Description |
|---|
JacksonJsonParser()
Creates an instance with a default
ObjectMapper that is created lazily. |
JacksonJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Creates an instance with the specified
ObjectMapper. |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
parseList(String json)
Parse the specified JSON string into a List.
|
Map<String,Object> |
parseMap(String json)
Parse the specified JSON string into a Map.
|
parseList, parseMap, trimParse, tryParsepublic JacksonJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
ObjectMapper.objectMapper - the object mapper to usepublic JacksonJsonParser()
ObjectMapper that is created lazily.public Map<String,Object> parseMap(String json)
JsonParserjson - the JSON to parsepublic List<Object> parseList(String json)
JsonParserjson - the JSON to parseCopyright © 2019 Pivotal Software, Inc.. All rights reserved.