import json import os # Import the os module to check for file existence # Specify the path to your JSON file json_file_path = '/content/tagi_gier_wspoldzielone.json' # Check if the file exists before attempting to open it if os.path.exists(json_file_path): # Open the JSON file and load its content with open(json_file_path, 'r') as file: data = json.load(file) # Display the loaded data (e.g., the first few items or the whole structure if small) print(data) else: print(f"Error: File not found at {json_file_path}. Please ensure the file is uploaded and the path is correct.")