remove deprecated method usage with jackson