DEV Community

Samandar Ravshanov
Samandar Ravshanov

Posted on

📦Convert JSON array to CSV and vice-versa

from functorflow import ff
from countries import json_countries

# Convert JSON array to CSV
csv = ff("json-csv").csv(json_countries)

print(csv)

# Convert CSV back to JSON array 

json_array = ff("json-csv").json(csv)

print(json_array)
Enter fullscreen mode Exit fullscreen mode

Stop wasting time installing and configuring Python libraries. Use them right away. 📦FunctorFlow instantly auto-install and auto-config them for you.

Top comments (0)