org.springframework.boot.config
Class JacksonJsonParser
java.lang.Object
org.springframework.boot.config.JacksonJsonParser
- All Implemented Interfaces:
- JsonParser
public class JacksonJsonParser
- extends Object
- implements JsonParser
Thin wrapper to adapt Jackson 2 ObjectMapper to JsonParser.
- Author:
- Dave Syer
- See Also:
JsonParserFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JacksonJsonParser
public JacksonJsonParser()
parseMap
public Map<String,Object> parseMap(String json)
- Description copied from interface:
JsonParser
- Parse the specified JSON string into a Map.
- Specified by:
parseMap in interface JsonParser
- Parameters:
json - the JSON to parse
- Returns:
- the parsed JSON as a map
parseList
public List<Object> parseList(String json)
- Description copied from interface:
JsonParser
- Parse the specified JSON string into a List.
- Specified by:
parseList in interface JsonParser
- Parameters:
json - the JSON to parse
- Returns:
- the parsed JSON as a list
Copyright © 2013. All Rights Reserved.