# APPEND_ELEMENT function

## `APPEND_ELEMENT` function

| Function Name | Description | Usage | Input parameter | Return value |
|---|---|---|---|---|
| `APPEND_ELEMENT` | Appends an element to a JSON array. | `APPEND_ELEMENT(value)` | Value to append. | JSON array with the appended element. |

## Supported data type


The `APPEND_ELEMENT` function supports the following data type:

- JSON

## Example: Append an element to a JSON array


**Sample data** : `$var1$ = ["first", "second", "third", "fourth"]`


**Usage** : `$var1$.APPEND_ELEMENT("fifth")`
Append element `fifth` to `var1`.


**Output** : `["first", "second", "third", "fourth", "fifth"]`.

## Recommendation

- Learn how to add and configure a [Data Mapping task](https://docs-0cloud-0google-0com.linkedin.net.nz/application-integration/docs/configure-data-mapping-task.md.txt)