The analysis as JSON
--json writes the Document of the analysis as it is, for debugging and tools that want every
field (the editable JSON is --format json). It holds the blocks in reading order. Each block has a type (title, authors,
heading, paragraph, list_item, list_continuation, equation, figure, footnote,
reference, note, code, contents_entry), its page (from 0), bbox and spans:
{
"id": 22, "type": "paragraph", "in_abstract": false, "page": 1,
"bbox": { "x0": 107.7, "y0": 389.5, "x1": 505.2, "y1": 486.7 },
"spans": [
{ "text": "The goal of reducing sequential computation ... Extended Neural GPU [", "style": 0 },
{ "text": "16", "style": 0, "href": "#ref-16" }
]
}
Joining the text of the spans gives the paragraph exactly. style is a bit set: 1 bold, 2 italic,
4 monospace, 8 math font, 16 superscript, 32 subscript, 64 sans-serif. A code block also has
rows, one per line, indented with spaces; a rebuilt table has a table field with its rows,
cells (colspan, rowspan) and rules. A contents_entry (a line of a book’s table of contents)
has its level and printed page; its title links to the heading it names. Links of the PDF
(link annotations) are kept as href on the spans they cover.