Convert Format
fc_convert_formatConvert files between JSON, CSV, INI, YAML, TOML, XML, and TOON formats. Supports JSON pretty-print and minify.
Instructions
Converts files between different formats.
Args:
input_path (string): Path to source file
output_path (string): Path to target file
input_format (string): "json" | "csv" | "ini" | "yaml" | "toml" | "xml" | "toon"
output_format (string): "json" | "csv" | "ini" | "yaml" | "toml" | "xml" | "toon"
json_indent (number, optional): JSON indentation (default: 2)
Supported conversions:
JSON <-> CSV (for arrays of objects)
JSON <-> INI (for flat objects/sections)
JSON <-> YAML
JSON <-> TOML
JSON <-> XML
JSON <-> TOON (hierarchical key-value format)
JSON pretty-print / minify
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Source file | |
| json_indent | No | JSON indentation | |
| output_path | Yes | Target file | |
| input_format | Yes | Input format | |
| output_format | Yes | Output format |