import json

documents = []
with open("books.json") as files:
    for file in files:
        documents.append(json.loads(file)["categories"])
print(documents[1])  # imprime o primeiro pokemon da documents
39f1f3694822ab6336922cc3621c19e4b8b79fed
<mask token>

<mask token>
with open('books.json') as files:
    for file in files:
        documents.append(json.loads(file)['categories'])
print(documents[1])

<mask token>
documents = []
with open('books.json') as files:
    for file in files:
        documents.append(json.loads(file)['categories'])
print(documents[1])

import json
documents = []
with open('books.json') as files:
    for file in files:
        documents.append(json.loads(file)['categories'])
print(documents[1])

import json

documents = []
with open("books.json") as files:
    for file in files:
        documents.append(json.loads(file)["categories"])
print(documents[1])  # imprime o primeiro pokemon da documents