Package org.springframework.boot.json
Interface JsonParser
- All Known Implementing Classes:
AbstractJsonParser
,BasicJsonParser
,GsonJsonParser
,JacksonJsonParser
,YamlJsonParser
public interface JsonParser
Method Detail
parseMap
Map<String,Object> parseMap(String json) throws JsonParseException
Parse the specified JSON string into a Map.- Parameters:
json
- the JSON to parse- Returns:
- the parsed JSON as a map
- Throws:
JsonParseException
- if the JSON cannot be parsed
parseList
List<Object> parseList(String json) throws JsonParseException
Parse the specified JSON string into a List.- Parameters:
json
- the JSON to parse- Returns:
- the parsed JSON as a list
- Throws:
JsonParseException
- if the JSON cannot be parsed