Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Div
idProductTOC

On this page

Table of Contents
maxLevel1
excludeOn this page
typeflat
separatorpipe

Overview

This page shows how you produce a simple table from JSON data using the JSON Table macro, which is part of the Advanced Tables for Confluence app.

Macro

...

browser input

Select this

...

macro

Macro NamenameAdvanced Tables - JSON Table
Macro Syntaxsyntax (Old editor){json-table}
Macro syntax (New editor - case insensitive)/JSON Table

Define these

...

parameters/

...

values

Paths to fields$
JSON Table settings > Data format > Paths to fields to be includeda,b,c
Column settings > Numbering & Totaling > Insert auto number columnAuto number on each rowOn
Column settings > Numbering & Totaling > Auto total numeric columnsrowOn
Macro body
[{a:10,b:20,c:30,d:40},{a:15,b:6}]

Screenshot

...

Parameters set in the macro editor

Image Added

Image Added

The macro looks as follows before the page is published:

Wiki

...

markup input (Old editor)

Code Block
languagetext
linenumberstrue
{json-table:
paths=$|
fieldPaths=a,b,c|
autoNumber=true|
autoTotal=true}
[{a:10,b:20,c:30,d:40},{a:15,b:6}]
{json-table}

Example

...

result

Other

...

examples

Visit our full list of product examples for additional inspiration!