Symfony 2 used FormErrorsSerializer.php with jQuery.