import json

input_file = "/home/halley/anablock/domain_list.txt"
output_file = "/home/halley/anablock/domains.json"

with open(input_file, "r") as f:
    domains = [{"domain": line.strip()} for line in f if line.strip()]

with open(output_file, "w") as f:
    json.dump(domains, f, indent=2)
