in util/export_env_variables.py [0:0]
def load_existing_json(output_file):
if output_file.exists():
with open(output_file, "r") as f:
try:
return json.load(f)
except json.JSONDecodeError:
print("⚠️ Existing JSON is invalid. Starting fresh.")
return []