Package: org.apache.groovy.toml.util

## [Java] Class TomlConverter

- org.apache.groovy.toml.util.TomlConverter

-     @Incubating
      public final class TomlConverter
      extends Object

  Converts between TOML and JSON text representations.

  Since:
    4.0.0

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public static String` | `convertJsonToToml(Reader jsonReader)` Converts JSON content from the supplied reader into TOML text.
    `` | `public static String` | `convertTomlToJson(Reader tomlReader)` Converts TOML content from the supplied reader into JSON text.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### 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

    - #### 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