def import_array(filename): # Load the JSON file with open(filename, 'r') as f: data = json.load(f) # Access the "messages" array array = data['messages'] return array