📐 Data Format Transformer / 数据格式转换器
Convert between JSON, YAML, XML, TOML, and CSV with schema validation and pretty-printing. / 在JSON、YAML、XML、TOML和CSV之间转换,带模式验证和美化输出。
🦁 由 KingAI.Work 出品 — 智能进化|vip@kingai.work
Quick Start / 快速开始
data-format-transformer --input data.yaml --output data.json --validate This converts a YAML file to validated JSON, ensuring no structural data loss. / 将YAML文件转为经过校验的JSON,保证数据结构零丢失。
Features / 功能
• Convert between JSON, YAML, XML, TOML, and CSV in one command / 一键完成JSON、YAML、XML、TOML、CSV格式互转,数据处理从未如此简单 • Schema validation catches structural errors before conversion / 转换前自动校验数据模式,从源头拦截格式错误,避免下游报错 • Pretty-print output with customizable indentation / 智能美化输出,支持自定义缩进,让混乱数据瞬间整洁可读 • Bulk batch processing via piping for large file sets / 支持管道批量处理海量文件,一键转换整个项目数据集 • Advanced nested flattening and unflattening logic (Pro) / Pro版支持深层嵌套压平与还原,轻松处理复杂层级结构 • Custom schema templates and auto-detection of ambiguous formats (Pro) / Pro版可自定义模式模板,并自动识别歧义格式,杜绝误判
Common Use Cases / 常见场景
• A DevOps engineer needs to migrate Kubernetes configs from YAML to JSON for a new CI pipeline — one command transforms and validates all files. / 运维工程师需将Kubernetes配置从YAML迁移至JSON以适配新CI流水线,一条命令完成批量转换与校验。 • A data analyst receives messy CSV export from legacy system and wants TOML for app config — tool flattens headers and cleans structure. / 数据分析师收到遗留系统导出的混乱CSV,需转为TOML供应用配置使用,工具自动压平表头并清洗数据结构。 • A developer debugging API response receives XML but prefers JSON for readability — quick conversion with schema validation ensures no fields lost. / 开发者调试API时收到XML响应,更习惯阅读JSON格式,快速转换并校验模式确保字段完整无遗漏。
Compare / 对比
| Free | Pro | |
|---|---|---|
| Basic | ✅ | ✅ |
| Advanced | — | ✅ |
| AI | — | ✅ |
| Support | Community | Priority |
• Unlock bulk directory batch processing — reduce hours of manual work to seconds 解锁批量文件夹处理能力,将数小时的手动操作缩短至秒级 • Access advanced nested flatten/unflatten — handle deeply complex JSON structures with ease 获取高级嵌套压平/还原功能,轻松驾驭深度复杂的JSON层级 • Get custom schema templates and ambiguous format detection — prevent costly data migration errors 拥有自定义模式模板与歧义格式识别,杜绝数据迁移中的昂贵错误\n\n
Part of the KING AI Ecosystem — kingai.work
