Package org.apache.groovy.toml.util

# Class TomlConverter

java.lang.Object
org.apache.groovy.toml.util.TomlConverter

@Incubating public final class TomlConverter extends Object
Converts between TOML and JSON text representations.

Since:
  4.0.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `convertJsonToToml(Reader jsonReader)`
  Converts JSON content from the supplied reader into TOML text.
  `static String`
  `convertTomlToJson(Reader tomlReader)`
  Converts TOML content from the supplied reader into JSON text.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### convertTomlToJson

    public static String convertTomlToJson(Reader tomlReader)
    Converts TOML content from the supplied reader into JSON text.
    Parameters:
      `tomlReader` - the reader that provides TOML content
    Returns:
      the equivalent JSON text

  - ### convertJsonToToml

    public static String convertJsonToToml(Reader jsonReader)
    Converts JSON content from the supplied reader into TOML text.
    Parameters:
      `jsonReader` - the reader that provides JSON content
    Returns:
      the equivalent TOML text