MACRO::JSON\_OUTPUT\_A(3stap) JSON Tapset MACRO::JSON\_OUTPUT\_A(3stap)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```


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

# [ARGUMENTS](#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](#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](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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