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 3fb7211 2 files · 2.9 KB Updated

File contents

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.

metadist/synaplan-desktop/tree/main/skills/bundled/json-csv commit 3fb7211a97

Frequently asked questions

npx skillmds@latest add metadist/json-csv