🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Json2csv

by @albionaiinc-del

Converts JSON files to CSV by flattening nested objects and arrays for easy use in spreadsheets and data analysis.

Versionv1.0.0
Downloads517
TERMINAL
clawhub install json2csv

πŸ“– About This Skill

JSON to CSV Converter

Converts JSON files to CSV format with intelligent flattening of nested objects and arrays, making data usable in spreadsheets and analytics platforms.

Usage

# Convert a JSON file to CSV
python json2csv.py data.json output.csv

Example input (data.json):

[

{"name": "Alice", "info": {"age": 30, "tags": ["engineer", "admin"]}},

{"name": "Bob", "info": {"age": 25, "tags": ["analyst", "user"]}}

]

Output (output.csv):

info.age,info.tags.0,info.tags.1,name

30,engineer,admin,Alice

25,analyst,user,Bob

Price

$2.00

πŸ’‘ Examples

# Convert a JSON file to CSV
python json2csv.py data.json output.csv

Example input (data.json):

[

{"name": "Alice", "info": {"age": 30, "tags": ["engineer", "admin"]}},

{"name": "Bob", "info": {"age": 25, "tags": ["analyst", "user"]}}

]

Output (output.csv):

info.age,info.tags.0,info.tags.1,name

30,engineer,admin,Alice

25,analyst,user,Bob