Hi Team,
I was try single document address collection backup export on Json getting error .
Can you please let what’s wrong below mongoexport command
H:\Desktop\Downloads\bin>mongoexport.exe --host localhost --port 27017 -u “root” -p “123” --authenticationDatabase admin --db ibm --collection address --query ‘{“name”:“rommel”}’ --out H:\Desktop\Downloads\address.json
2022-02-16T16:20:33.978+0530 query ‘[39 123 110 97 109 101 58 114 111 109 109 101 108 125 39]’ is not valid JSON: json: cannot unmarshal string into Go value of type map[string]interface {}
2022-02-16T16:20:33.978+0530 try ‘mongoexport --help’ for more information
rs1:PRIMARY> db.address.find({“name”:“rommel”})
{ “_id” : ObjectId(“61c4ad4e8960551298a85a91”), “name” : “rommel”, “blk_no” : 12, “street” : “dewey street”, “city” : “olongapo” }
rs1:PRIMARY>