---
title: opsgenie.respondersToJSON() function
description: opsgenie.respondersToJSON() converts an array of Opsgenie responder strings to a string-encoded JSON array that can be embedded in an alert message.
url: https://docs.influxdata.com/flux/v0/stdlib/contrib/sranka/opsgenie/responderstojson/
estimated_tokens: 363
product: Flux
version: v0
---

# opsgenie.respondersToJSON() function

-   Flux 0.84.0+
-   View InfluxDB support

`opsgenie.respondersToJSON()` is a user-contributed function maintained by the [package author](#package-author-and-maintainer).

`opsgenie.respondersToJSON()` converts an array of Opsgenie responder strings to a string-encoded JSON array that can be embedded in an alert message.

##### Function type signature

```js
(v: [string]) => string
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### v

(Required) (Required) Array of Opsgenie responder strings. Responder strings must begin with `user:` , `team:` , `escalation:` , or `schedule:` .
