Fix --alt-hint combined with --json
Use stdoutlog instead of print