use json for output of scan command