Package org.springframework.boot.json
Class YamlJsonParser
java.lang.Object
org.springframework.boot.json.AbstractJsonParser
org.springframework.boot.json.YamlJsonParser
- All Implemented Interfaces:
JsonParser
Thin wrapper to adapt Snake
Yaml
to JsonParser
.- Since:
- 1.0.0
- Author:
- Dave Syer, Jean de Klerk
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.boot.json.AbstractJsonParser
parseList, parseMap, trimParse, tryParse
-
Constructor Details
-
YamlJsonParser
public YamlJsonParser()
-
-
Method Details
-
parseMap
Description copied from interface:JsonParser
Parse the specified JSON string into a Map.- Parameters:
json
- the JSON to parse- Returns:
- the parsed JSON as a map
-
parseList
Description copied from interface:JsonParser
Parse the specified JSON string into a List.- Parameters:
json
- the JSON to parse- Returns:
- the parsed JSON as a list
-