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

# macro::json\_output\_array\_numeric\_value(3stap)

Output a numeric value for metric in an array.

## NAME

macro::json\_output\_array\_numeric\_value - Output a numeric value for metric in an array.

## SYNOPSIS

```
    @json_output_array_numeric_value(array_name,array_index,metric_name,value)
```

## ARGUMENTS

*array\_name*

The name of the array.

*array\_index*

The array index (as a string) indicating where to store the numeric value.

*metric\_name*

The name of the numeric metric.

*value*

The numeric value to output.

## DESCRIPTION

The json\_output\_array\_numeric\_value macro is designed to be called from the 'json\_data' probe in the user's script to output a metric's numeric value that is in an array. This metric should have been added with **json\_add\_array\_numeric\_metric**.

## SEE ALSO0

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