Converts Json to CSV