to a Clout file. If no input is provided will attempt to read YAML from stdin. By default the output
(assuming the scriptlet generates output) will be output to stdout, but you can use the
flag to specify a file (or direct to a file in the shell via
the parsed Clout structure as well as a few helper functions.
The default format for output is YAML, but you can select JSON, XML, or CBOR instead with
--format/-f. Note that Clout in JSON may lose some type information (e.g. JSON doesn’t distinguish
between an integer and a float). For this reason we also support a “compatible JSON” format (“cjson”)
that adds that type information. You would need specialized code to be able to consume this format.
XML output uses a bespoke structure for maps and lists, which also must be specially consumed.