Transforms JSON obtained from REST web service to CSV file