JSON output from dpkg commands