from llama_index import Document doc = Document("doc text", doc_id="my id", extra_info={"key": "val"})
from llama_index import Document import josn with open("file.json", "r") as f: data = json.load(f) documents = [] for key, val in data.items(): documents.append(Document(f"{key}: {val}"))