Understand the nested list return format
masterThe document structure is preserved as nested lists. Paragraphs are always at depth 4 (output.body[i][j][k][l]).
Structure Hierarchy:
document(List)table(List)row(List)cell(List)paragraph(String, Run, or Par instance)
If a document contains no tables, the body will appear as a single-cell table containing all content. Tables are always returned as $n imes m$ (rows $ imes$ columns) lists. If duplicate_merged_cells=True, merged cells are filled with content from adjacent cells; if False, they are filled with empty cells.
[
# document
[
# table
[
# row
[
# cell
"Paragraph 1",
"Paragraph 2"
]
]
]
]