---
name: "macro::json_output_array_string_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_string_value"
---

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

Output a string value for metric in an array.

## NAME

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

## SYNOPSIS

```
    @json_output_array_string_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 string value.

*metric\_name*

The name of the string metric.

*value*

The string value to output.

## DESCRIPTION

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

## SEE ALSO0

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