---
name: "function::json_add_array"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::json_add_array"
---

# function::json\_add\_array(3stap)

Add an array

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

*name*

The name of the array.

*description*

Array description. An empty string can be used.

## 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

[*tapset::json*(3stap)](/tapset::json/3stap.md)
