Skip to content
json-render-office
Esc
↑↓navigate↵open⌘Jpreview
On this page

Report

The standard components of json-render-report.

Report components. A Report is the root and holds Chapter elements. See the overview for how to read the tables.

Report

The report. Must be the root element. Children must be Chapter components. Takes child elements.

Report rendered in LibreOffice
Report in LibreOffice 26.8.3.1.
Prop Type Nullable Description
title string no The report title: the cover slide, the first line of the document and the page heading. At most 90 characters.
subtitle string yes At most 140 characters.
author string yes At most 80 characters.
{
  "type": "Report",
  "props": {
    "title": "Quarterly review",
    "subtitle": "Q3 2026",
    "author": "Finance team"
  },
  "children": []
}

Chapter

One topic: a slide in the deck, a heading with its content in the document, a section on the web page. Keep it to one idea and about five blocks. Takes child elements.

Chapter rendered in LibreOffice
Chapter in LibreOffice 26.8.3.1.
Prop Type Nullable Description
title string no Under 8 words. It is a slide title and a document heading. At most 90 characters.
notes string yes Speaker notes on the slide. Ignored in the document. At most 2000 characters.
{
  "type": "Chapter",
  "props": {
    "title": "Revenue grew 24%",
    "notes": null
  },
  "children": []
}

Paragraph

A paragraph of body text. Has no children: use "children": [].

Paragraph rendered in LibreOffice
Paragraph in LibreOffice 26.8.3.1.
Prop Type Nullable Description
text string no At most 600 characters.
{
  "type": "Paragraph",
  "props": {
    "text": "Growth came mostly from the enterprise tier."
  },
  "children": []
}

BulletList

A bulleted or numbered list. At most 6 items of about 12 words each fit a slide. Has no children: use "children": [].

BulletList rendered in LibreOffice
BulletList in LibreOffice 26.8.3.1.
Prop Type Nullable Description
items string[] no 1 to 7 items, each at most 160 characters.
ordered boolean yes
{
  "type": "BulletList",
  "props": {
    "items": [
      "Enterprise revenue up 31%",
      "Churn down to 2.1%"
    ],
    "ordered": false
  },
  "children": []
}

Table

A table with a header row. At most 6 columns and 10 rows. Has no children: use "children": [].

Table rendered in LibreOffice
Table in LibreOffice 26.8.3.1.
Prop Type Nullable Description
columns string[] no 1 to 6 items, each at most 40 characters.
rows string[][] no 1 to 10 items, each at most 6 items, each at most 60 characters.
striped boolean yes
{
  "type": "Table",
  "props": {
    "columns": [
      "Region",
      "Revenue"
    ],
    "rows": [
      [
        "EMEA",
        "$4.2M"
      ],
      [
        "Americas",
        "$6.8M"
      ]
    ],
    "striped": null
  },
  "children": []
}

Chart

A chart. Native and editable in the deck, a table of the same numbers in the Word document, an SVG chart on the web. Has no children: use "children": [].

Chart rendered in LibreOffice
Chart in LibreOffice 26.8.3.1.
Prop Type Nullable Description
type enum no One of bar, line, pie, doughnut, area.
title string yes At most 80 characters.
labels string[] no 1 to 12 items, each at most 30 characters.
series { name: string; values: number[] }[] no One value per label. Pie and doughnut charts use only the first series. 1 to 4 items.
{
  "type": "Chart",
  "props": {
    "type": "bar",
    "title": "Revenue by quarter",
    "labels": [
      "Q1",
      "Q2",
      "Q3",
      "Q4"
    ],
    "series": [
      {
        "name": "Revenue",
        "values": [
          4.1,
          4.8,
          5.6,
          6.9
        ]
      }
    ]
  },
  "children": []
}

Image

A picture with alt text. Has no children: use "children": [].

Image rendered in LibreOffice
Image in LibreOffice 26.8.3.1.
Prop Type Nullable Description
src string no An https URL or a data: URI. Local paths are not allowed.
alt string no At most 200 characters.
{
  "type": "Image",
  "props": {
    "src": "https://picsum.photos/800/450?random=1",
    "alt": "A mountain lake at sunrise"
  },
  "children": []
}

Was this page helpful?