klyn.io.toml.TOML.stringify
method
public static stringify(document as Map<String, Object>) as String throws TOMLWriteException:
Description

Serializes a root table as deterministic TOML text.

Parameters
ParameterDescription
documentRoot TOML table.
Returns

Serialized TOML document.

Throws
  • TOMLWriteException if a value cannot be represented by TOML.
Example
document = {"title": "Klyn", "enabled": true}
text = TOML.stringify(document)
assert "title = \"Klyn\"" in text