csvkit is a suite of utilities written in Python for converting to and working with files in csv format. csvkit is designed to be used a replacement for most of Python’s csv module simply
It can also be called from the command line
in2csv data.json > data.csv
To install on a Mac you can use use PIP a tool for installing and managing Python packages.
pip install csvkit
It is supported on OSX and Linux. It also works–but is tested less frequently–on Windows.