eliminate dependency on bson.json_util