Map | MAP
Syntax
MAP( [input] )
Parameters
input
Any data may be used as the input.
Return Value
The result of the input being converted to a map. The return value will always be an empty map set if the input is not an object.Description
Where possible, any value passed into this method will return a map. All maps are eventually converted to objects before they are stored in the process data. This method is primarily useful only in cases where other methods may require a map as an argument. Generally, the usage of this method may be avoided as all methods should internally convert object arguments to maps where needed.Examples
# input = { a: 1, b: 2 }
MAP(${input}) # returns [ 'a' => 1, 'b' => 2 ]
MAP(null) # returns an empty map
MAP(false) # returns an empty map
MAP("1.5") # returns an empty map