python
import json
from tqdm import tqdm
# json line
with open(file_name, "r", encoding='utf-8') as f:
lines = f.readlines()
for line in tqdm(lines):
json_line = json.loads(line)
print(json_line)
# json list
with open(file_name, 'r', encoding='utf-8') as f:
json_list = json.load(f)
for json_line in tqdm(json_list):
print(json_line)