catch all possible json encoding errors
avoid vhost clash