Commands
Guardian Tcl currenly adds one ensemble command, parse. This command exposes subcommands to parse
data from a variety of formats directly into nested Tcl data structures.
parse
The parse command has the following usage:
parse <format> <data>
<format>can be any ofjson,toml, oryaml.<data>is a Tcl string containing the raw data to deserialize.
For example, to deserialize the contents of the $conf_src variable as JSON, you can write:
set config [parse json $conf_src]
These commands are wrappers around the corresponding Serde deserializers.