Package org.apache.groovy.yaml.util
Class YamlConverter
java.lang.Object
org.apache.groovy.yaml.util.YamlConverter
A converter for converting YAML to JSON, vice versa
- Since:
 - 3.0.0
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertJsonToYaml(Reader jsonReader) Convert json to yamlstatic StringconvertYamlToJson(Reader yamlReader) Convert yaml to json 
- 
Method Details
- 
convertYamlToJson
Convert yaml to json- Parameters:
 yamlReader- the reader of yaml- Returns:
 - the text of json
 
 - 
convertJsonToYaml
Convert json to yaml- Parameters:
 jsonReader- the reader of json- Returns:
 - the text of yaml
 
 
 -