Package org.apache.groovy.toml.util
Class TomlConverter
java.lang.Object
org.apache.groovy.toml.util.TomlConverter
Converts between TOML and JSON text representations.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertJsonToToml(Reader jsonReader) Converts JSON content from the supplied reader into TOML text.static StringconvertTomlToJson(Reader tomlReader) Converts TOML content from the supplied reader into JSON text.
-
Method Details
-
convertTomlToJson
Converts TOML content from the supplied reader into JSON text.- Parameters:
tomlReader- the reader that provides TOML content- Returns:
- the equivalent JSON text
-
convertJsonToToml
Converts JSON content from the supplied reader into TOML text.- Parameters:
jsonReader- the reader that provides JSON content- Returns:
- the equivalent TOML text
-