Convert local YAML and JSON files
abox_yaml_jsonConvert a local UTF-8 file between a supported YAML subset and JSON while preserving ordered values, duplicate keys, and large number tokens; writes and verifies a new .json or .yaml file.
Instructions
Convert a local UTF-8 file between the website-supported YAML subset and JSON. Preserves ordered values, duplicate keys and large number tokens; formatting, string escapes and comments may change. YAML anchors, aliases, custom tags and multiple documents are unsupported. Optional natural key sorting on YAML to JSON. Writes and verifies a new .json or .yaml/.yml file; no contents returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indent | No | 2 | |
| direction | Yes | ||
| sort_keys | No | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. |