%pairs(<list>.[*])
Serialize a list of attributes as comma-delimited string.
Return: string
Note that there is no "convert string to pairs" function. Instead, you can simply assign the string to a structural attribute (group
, tlv
, etc.) and the string will be parsed as pairs.
Example
&control.Tmp-String-0 := { "This is a string", "This is another one" }
&reply.Reply-Message := "Serialize output: %pairs(&control.[*])"
Output
Serialize output: Tmp-String-0 = "\"This is a string\", Tmp-String-0 = \"This is another one\""