Json encode and decode filters and functions for Twig