Skip to content

JSON_DECODE()

Synopsis

Returns the string value of a JSON object key from a string containing a JSON array.

Description

The JSON_DECODE function retrieves the value of the given variable name and parses it as JSON, returning the value at a specified key. If the key cannot be found, an empty string is returned.

Syntax

JSON_DECODE(varname,item)
Arguments
  • varname - The name of the variable containing the JSON string to parse.

  • item - The name of the key whose value to return.

See Also

Generated Version

This documentation was generated from Asterisk branch 16 using version GIT