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 asString
object- Parameters:
jsonFile
- the json file- Returns:
- the transformed yaml as
String
object - Throws:
IOException
- Signals that an I/O exception has occurred
-
toYaml
Transforms the given json file into a yaml asFile
object- Parameters:
jsonFile
- the json fileresultYamlFile
- the result file in yaml format- Throws:
IOException
- Signals that an I/O exception has occurred
-