# dpkg-query-json A crate for parsing “dpkg-query” in json. ## Examples ```rust use dpkg_query_json::QueryFieldPackage; let fields = vec![String::from("Package"), String::from("Version"), String::from("Architecture")]; let packages = vec![String::from("dpkg")]; QueryFieldPackage::new(fields, packages).json(); //Map // {"dpkg": Object({"Architecture": String("amd64"), "Version": String("1.19.7ubuntu3")})} ``` ```rust use dpkg_query_json::QueryFieldPackage; let fields = vec![String::from("Package"), String::from("Version"), String::from("Architecture")]; let packages = vec![String::from("dpkg")]; QueryFieldPackage::new(fields, packages).json_string(); //String // "{\"dpkg\":{\"Architecture\":\"amd64\",\"Version\":\"1.19.7ubuntu3\"}}" ``` ## Package information fields Architecture Bugs Conffiles Config-Version Conflicts Breaks Depends Description Enhances Essential Filename Installed-Size MD5sum MSDOS-Filename Maintainer Origin Package Pre-Depends Priority Provides Recommends Replaces Revision Section Size Source Status Suggests Version