Exmple JsonErrorHandler for Silex (or any other app implementing HttpKernel)