数据与分析
json-csv
Convert between JSON and CSV. A JSON array of objects becomes a CSV, and a CSV becomes a JSON array of objects. Direction follows the file extensions.
metadist · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add metadist/synaplan-desktop --skill json-csv技能说明
name: json-csv description: Convert between JSON and CSV. A JSON array of objects becomes a CSV, and a CSV becomes a JSON array of objects. Direction follows the file extensions.
json-csv
Convert tabular data between formats. Direction is chosen automatically from the input and output extensions.
How to run
python3 <skill_dir>/run.py <input.json> <output.csv> # JSON array of objects -> CSV
python3 <skill_dir>/run.py <input.csv> <output.json> # CSV -> JSON array of objects
- Both paths must be in an allowed folder or the out-box (write to the out-box).
- JSON input must be an array of objects (a single object is also accepted).
Standard library only. After running, tell the user the saved path.