java.lang.Object
io.github.astrapi69.json.JsonToYamlExtensions
The class
JsonToYamlExtensions helps to transform a given json string to a yaml string-
Method Details
-
toYaml
-
toYaml
Transforms the given json file into a yaml asStringobject- Parameters:
jsonFile- the json file- Returns:
- the transformed yaml as
Stringobject - Throws:
IOException- Signals that an I/O exception has occurred
-
toYaml
Transforms the given json file into a yaml asFileobject- Parameters:
jsonFile- the json fileresultYamlFile- the result file in yaml format- Throws:
IOException- Signals that an I/O exception has occurred
-