protected function parseParameters($parameters)
    {
        if (isset($parameters[0])) {
            $params = json_decode($parameters[0], true);
            if ($params) {
                return $params;
            }
        }

        // If json couldn't be encoded return string as it was
        return $parameters;
    }
protected function parseParameters($parameters)
    {
        if (isset($parameters[0])) {
            $params = json_decode($parameters[0], true);
            if ($params) {
                return $params;
            }
        }

        // If json couldn't be encoded return string as it was
        return $parameters;
    }
protected function parseParameters ( $ parameters ) { if ( isset ( $ parameters [ 0 ] ) ) { $ params = json_decode ( $ parameters [ 0 ] , true ) ; if ( $ params ) { return $ params ; } } // If json couldn't be encoded return string as it was return $ parameters ; }
Parse parameters that are usually in json.

@param $parameters

@return string|array
Parse parameters that are usually in json .