Yaml Toml Converter API
https://api.findutils.com/api/tools/yaml-toml-converter/execute Convert YAML to TOML 1.0 or TOML back to YAML. Mappings become tables, lists of mappings become arrays of tables, and scalar lists stay inline arrays. The YAML root must be a mapping because TOML has no top-level list. TOML has no null either: nulls is "drop" (default, the key is left out and reported) or "empty" (an empty string). Anchors, aliases and `<<` merge keys are resolved on load and written out in full. Comments are not preserved in either direction. Parse errors report the line and column.
Request body
application/json-
input
string required
The YAML document or the TOML document to convert.
-
mode
string optional
Conversion direction. Default: yaml-to-toml. One of
yaml-to-toml · toml-to-yaml. Default"yaml-to-toml". -
nulls
string optional
yaml-to-toml: what to do with a null value. "drop" leaves the key out; "empty" writes "". Default: drop. One of
drop · empty. Default"drop". -
indent
integer optional
toml-to-yaml: YAML indentation width (1-8). Default: 2. Default
2. -
sort_keys
boolean optional
Sort keys alphabetically at every level. Default: false (input order). Default
false.
Example arguments
Verified{
"input": "title: demo\ndatabase:\n host: localhost"
} More Data tools
- Api Docs Generator Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples) or as an OpenAP
- Bookmarks Html To Csv Convert a browser bookmarks.html export from Chrome, Firefox, Edge, Safari or any other browser that writes the Netscape bookmark format int
- Csv To Bookmarks Html Convert a CSV of links into a Netscape bookmarks.html file that Chrome, Firefox, Edge and Safari import.
- Csv To Json Parse CSV text into an array of objects keyed by the header row.
- Csv To Ndjson Convert CSV into newline-delimited JSON (NDJSON, JSON Lines, .jsonl): one JSON object per line, keyed by the header row.
- Csv To Sql Convert CSV text into SQL INSERT statements, optionally preceded by a CREATE TABLE.