Package org.springframework.boot.json
Interface JsonParser
- All Known Implementing Classes:
AbstractJsonParser
,BasicJsonParser
,GsonJsonParser
,JacksonJsonParser
public interface JsonParser
- Since:
- 1.0.0
- Author:
- Dave Syer
- See Also:
-
Method Summary
-
Method Details
-
parseMap
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
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
-