Changed return type of top-level ValidationException to be JSON.