Use twig_assoc filter to build actionParams json array