Using runCommand on a mongo db:

    auto qry = Bson([
        "distinct":Bson("stuff"),
        "key":Bson("site"),
        "query":Bson(parseJsonString("{}"))
    ]);               
    
    auto qry2 = serializeToBson(parseJsonString(`{
        "distinct":"stuff", 
        "key":"site", 
        "query":{}}
    `));
    
    writeln(db.runCommand(qry)); // doesn't work
    writeln(db.runCommand(qry2)); // works

The second query form works, but I need to be able to use the first form (qry). I would have thought the two bson queries should be the same. Does anybody know what is wrong here?