convert to json via cli tool