在 JSON 与 TOML 之间互转,配置文件友好。
{ "title": "WeTools", "owner": { "name": "Alice", "dob": "1990-01-01" }, "database": { "server": "192.168.1.1", "ports": [ 8001, 8002, 8003 ], "enabled": true } }
title = "WeTools" [owner] name = "Alice" dob = "1990-01-01" [database] server = "192.168.1.1" ports = [ 8_001, 8_002, 8_003 ] enabled = true
JSON ↔ YAML
在 JSON 与 YAML 之间互转,保留注释结构能力有限。
YAML ↔ TOML
在 YAML 与 TOML 之间互转,配置迁移利器。
JSON → Protobuf
从任意 JSON 推导出 Protobuf 3 message 定义。
JSON ↔ CSV
对象数组与 CSV 互转,可选分隔符与首列字段顺序。