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)