org.springframework.boot.config
Interface JsonParser

All Known Implementing Classes:
JacksonJsonParser, SimpleJsonParser, YamlJsonParser

public interface JsonParser

Parser that can read JSON formatted strings into Maps or Lists.

Author:
Dave Syer
See Also:
JsonParserFactory, SimpleJsonParser, JacksonJsonParser, YamlJsonParser

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.
 

Method Detail

parseMap

Map<String,Object> parseMap(String json)
Parse the specified JSON string into a Map.

Parameters:
json - the JSON to parse
Returns:
the parsed JSON as a map

parseList

List<Object> parseList(String json)
Parse the specified JSON string into a List.

Parameters:
json - the JSON to parse
Returns:
the parsed JSON as a list


Copyright © 2013. All Rights Reserved.