Fix qps command process type, domain arguments as well as return json if requested.