A script to convert an array of JSON objects to CSV