Convert lines of JSON data to CSV