FUNCTION::JSON\_ADD\_A(3stap) JSON Tapset FUNCTION::JSON\_ADD\_A(3stap)

# [NAME](#NAME)

function::json\_add\_array - Add an array

# [SYNOPSIS](#SYNOPSIS)

```


    json_add_array:long(name:string,description:string)
```

# [ARGUMENTS](#ARGUMENTS)

*name*

The name of the array.

*description*

Array description. An empty string can be used.

# [DESCRIPTION](#DESCRIPTION)

This function adds a array, setting up everything needed. Arrays contain other metrics, added with **json\_add\_array\_numeric\_metric** or **json\_add\_array\_string\_metric**.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::json*(3stap)](/man/enterprise-packages/systemtap/tapset::json.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::json_add_array(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
