DEV Community

Sahil kashyap
Sahil kashyap

Posted on

convert api data in csv using postman and miller

Aim: Json response to CSV

Solution:

Miller is a command-line tool for querying, shaping, and reformatting data files in various formats including CSV, TSV, JSON, and JSON Lines.

Miller Official website
Github: miller

mlr --j2c cut -f id,name,username,email,phone response.json>user.csv

if all the data is available in one response. save the response as a file via postman
postman image

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay