Your payload is a json string representation of a javascript object than. Simply feed it through the json node from the palette first and it will be parsed to a nice javascript object where you can use the above method.
Where is that value coming from? If its from an mqtt node you can actually select in the mqtt in node to parse the value and emit it already transformed to a nice workable js object.