--- 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. menu: flux_v0_ref: name: opsgenie.respondersToJSON parent: contrib/sranka/opsgenie identifier: contrib/sranka/opsgenie/respondersToJSON weight: 301 --- `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 ``` {{% caption %}} For more information, see [Function type signatures](/flux/v0/function-type-signatures/). {{% /caption %}} ## Parameters ### v ({{< req >}}) (Required) Array of Opsgenie responder strings. Responder strings must begin with `user: `, `team: `, `escalation: `, or `schedule: `.