Build a JSON table from an array - 8.x
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 name | Advanced Tables - JSON Table |
Macro syntax | {json-table} |
Define these parameters/values
JSON Table settings > Data format > Paths to fields | $ |
JSON Table settings > Data format > Paths to fields to be included | a,b,c |
Column settings > Numbering & Totaling > Insert auto number column | On |
Column settings > Numbering & Totaling > Auto total numeric columns | On |
Macro body | [{a:10,b:20,c:30,d:40},{a:15,b:6}] |
Screenshot
Wiki markup input
{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!