Takes in an array of JSONs and returns a CSV with the keys as column headers