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

# tapset::json(3stap)

systemtap json tapset

## NAME

tapset::json - systemtap json tapset

## DESCRIPTION

 The JSON tapset provides probes, functions, and macros to generate\
  a JSON metadata and data file. The JSON metadata file is located in\
  /proc/systemtap/MODULE/metadata.json. The JSON data file is located\
  in /proc/systemtap/MODULE/data.json. The JSON data file is updated\
  with current data every time the file is read.

-

  - **json\_set\_prefix**

  Set the metric prefix.

-

  See  [*function::json\_set\_prefix*(3stap)](/function::json_set_prefix/3stap.md)\
    for details.

- **json\_add\_numeric\_metric**

  Add a numeric metric

-

  See  [*function::json\_add\_numeric\_metric*(3stap)](/function::json_add_numeric_metric/3stap.md)\
    for details.

- **json\_add\_string\_metric**

  Add a string metric

-

  See  [*function::json\_add\_string\_metric*(3stap)](/function::json_add_string_metric/3stap.md)\
    for details.

- **json\_add\_array**

  Add an array

-

  See  [*function::json\_add\_array*(3stap)](/function::json_add_array/3stap.md)\
    for details.

- **json\_add\_array\_numeric\_metric**

  Add a numeric metric to an array

-

  See  [*function::json\_add\_array\_numeric\_metric*(3stap)](/function::json_add_array_numeric_metric/3stap.md)\
    for details.

- **json\_add\_array\_string\_metric**

  Add a string metric to an array

-

  See  [*function::json\_add\_array\_string\_metric*(3stap)](/function::json_add_array_string_metric/3stap.md)\
    for details.

- **json\_data**

  Fires whenever JSON data is wanted by a reader.

-

   See  [*probe::json\_data*(3stap)](/probe::json_data/3stap.md)\
    for details.

- **@json\_output\_data\_start**

  Start the json output.

-

   See  [*macro::json\_output\_data\_start*(3stap)](/macro::json_output_data_start/3stap.md)\
    for details.

- **@json\_output\_string\_value**

  Output a string value.

-

   See  [*macro::json\_output\_string\_value*(3stap)](/macro::json_output_string_value/3stap.md)\
    for details.

- **@json\_output\_numeric\_value**

  Output a numeric value.

-

   See  [*macro::json\_output\_numeric\_value*(3stap)](/macro::json_output_numeric_value/3stap.md)\
    for details.

- **@json\_output\_array\_string\_value**

  Output a string value for metric in an array.

-

   See  [*macro::json\_output\_array\_string\_value*(3stap)](/macro::json_output_array_string_value/3stap.md)\
    for details.

- **@json\_output\_array\_numeric\_value**

  Output a numeric value for metric in an array.

-

   See  [*macro::json\_output\_array\_numeric\_value*(3stap)](/macro::json_output_array_numeric_value/3stap.md)\
    for details.

- **@json\_output\_data\_end**

  End the json output.

-

   See  [*macro::json\_output\_data\_end*(3stap)](/macro::json_output_data_end/3stap.md)\
    for details.

## SEE ALSO

[*function::json\_set\_prefix*(3stap)](/function::json_set_prefix/3stap.md), [*function::json\_add\_numeric\_metric*(3stap)](/function::json_add_numeric_metric/3stap.md), [*function::json\_add\_string\_metric*(3stap)](/function::json_add_string_metric/3stap.md), [*function::json\_add\_array*(3stap)](/function::json_add_array/3stap.md), [*function::json\_add\_array\_numeric\_metric*(3stap)](/function::json_add_array_numeric_metric/3stap.md), [*function::json\_add\_array\_string\_metric*(3stap)](/function::json_add_array_string_metric/3stap.md), [*probe::json\_data*(3stap)](/probe::json_data/3stap.md), [*macro::json\_output\_data\_start*(3stap)](/macro::json_output_data_start/3stap.md), [*macro::json\_output\_string\_value*(3stap)](/macro::json_output_string_value/3stap.md), [*macro::json\_output\_numeric\_value*(3stap)](/macro::json_output_numeric_value/3stap.md), [*macro::json\_output\_array\_string\_value*(3stap)](/macro::json_output_array_string_value/3stap.md), [*macro::json\_output\_array\_numeric\_value*(3stap)](/macro::json_output_array_numeric_value/3stap.md), [*macro::json\_output\_data\_end*(3stap)](/macro::json_output_data_end/3stap.md), [*stap*(1)](/stap/1.md), [*stapprobes*(3stap)](/stapprobes/3stap.md)
