input: from typing import List
  
  def list_countries() -> List[str]:
      """List all the countries from a JSON file.
      >>> list_countries()
      ['Afghanistan', 'Albania', 'Algeria', 'Andorra', ..., 'Zimbabwe']
      """
output:     import json
      with open('countries.json', 'r') as file:
          data = json.load(file)
      return [country['name'] for country in data]