Compass mongosh getCollectionInfo does not stringify correctly nested objects

There is some configuration item that allows a deeper display of the values. I just do not remember what it is. But if it is a 1 time thing you may use JSON.stringify directly as

d = db.temp.findOne( {} )
JSON.stringify( d )