---
title: "Using Augments with JSON Table"
canonical: "https://support.appfire.com/space/TBL/74814179/Using%20Augments%20with%20JSON%20Table"
format: markdown
---
> Macro (div)
> 
> ### On this page
> 
> > Macro (toc)

# Overview

This page shows how to use [Augments](https://appfire.atlassian.net/wiki/spaces/TBL/pages/74814982) when 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. In this example, one of the columns that is an embedded JSON array field is expanded into a table using the wiki markup version of the JSON Table macro. This data is taken from publicly available download data on [Atlassian Marketplace](http://marketplace.atlassian.com).

# Macro Browser Input

### Select this Macro

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

### Define these Parameters/Values

|  |  |
| --- | --- |
| *Paths to array fields* | versions |
| *Paths to fields to be included* | version,sums |
| *Auto number on each row* | selected |
| Output format | wiki |
| URL to JSON data | [https://marketplace.atlassian.com/rest/1.0/plugins/org.swift.confluence.table/downloads?startDate=2013-01-01&numVersions=4](https://marketplace.atlassian.com/rest/1.0/plugins/org.swift.confluence.table/downloads?startDate=2005-01-01&numVersions=4) |
| Augments to data row values | ,"{json-table: paths=monthlies|fieldPaths=month,sum|sortColumn=1|sortDescending=true|autoTotal=true|headingAugments=Month,Total}%2%{json-table}" |
| Augments to heading row values | Version, Downloads |

### Screenshot

![image](media://3d0080b9-e874-4482-a8e3-485615470237)

# Wiki Markup

To get this example on your own page, edit the page, copy the text below and paste into the **Insert → Markup** dialog for **Confluence wiki**.

##### **Wiki markup equivalent**

```
{json-table:output=wiki|
paths=versions|
fieldPaths=version,sums|
url=https://marketplace.atlassian.com/rest/1.0/plugins/org.swift.confluence.table/downloads?startDate=2013-01-01&numVersions=4|
headingAugments=Version,Downloads|
augments=, "
  %[%json-table:
    paths=monthlies%!%
    fieldPaths=month,sum%!%
    sortColumn=1%!%
    sortDescending=true%!%
    autoTotal=true%!%
    id=$mpKey.%1%.month%!%
    headingAugments=Month,Total%!%
  %]%
  %2%
  %[%json-table%]%"|
autoNumber=true|
sortColumn=1|
sortDescending=true}
{json-table}
```

# Example Result

![image](media://bfa91b24-18af-4a7d-a3a8-96cd1caf9ef3)

# Other Examples

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