Maybe using ``echo_twig_assoc()`` function is better for this (simplier to read).

Think about the case where action.params is empty:
``{% set actionParams = action.params ? echo_twig_assoc(action.params) : '{}' %}``