org.springframework.boot.config
Class JacksonJsonParser

java.lang.Object
  extended by 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

Constructor Summary
JacksonJsonParser()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JacksonJsonParser

public JacksonJsonParser()
Method Detail

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.