---
title: "Building a JSON Table from an Array"
canonical: "https://support.appfire.com/space/TBL/74814186/Building%20a%20JSON%20Table%20from%20an%20Array"
format: markdown
---
> Macro (div)
> 
> ### On this page
> 
> > Macro (toc)

# Overview

This page shows how you produce a simple table from JSON data using the [JSON Table macro](https://appfire.atlassian.net/wiki/spaces/TBL/pages/74815257), which is part of the [Advanced Tables for Confluence](https://appfire.atlassian.net/wiki/spaces/TBL/overview) add-on.

# Macro Browser Input

### Select this Macro

|  |  |
| --- | --- |
| *Macro Name* | JSON Table |
| *Macro Syntax* | {json-table} |

### Define these Parameters/Values

|  |  |
| --- | --- |
| *Paths to fields* | $ |
| *Paths to fields to be included* | a,b,c |
| *Auto number on each row* | selected |
| Auto total rows | selected |
| Macro body | `[{a:10,b:20,c:30,d:40},{a:15,b:6}]` |

### Screenshot

![image](media://912f5379-a24c-4efe-b60f-5fd265a4d744)

# Wiki Markup Input

```plaintext
{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

![image](media://93980c6c-3004-4388-9026-3b1bd3c545de)

# Other Examples

Visit our [full list of product examples](https://appfire.atlassian.net/wiki/spaces/TBL/pages/74815984) for additional inspiration!