Skip to main content
Splits a given string into key-value pairs using two delimiters and returns a map of the split pairs. This function is supported from v3.1 onwards.

Syntax

Parameters

  • content: required, the string expression to split.
  • delimiter: optional, the delimiter used to split content into key-value pairs, defaults to ,.
  • map_delimiter: optional, the delimiter used to separate each key-value pair, defaults to :.

Return value

Returns a MAP of STRING elements. Any null input results in NULL.

Examples

keywords

STR_TO_MAP