Compass mongosh getCollectionInfo does not stringify correctly nested objects

Output of db.getCollectionInfos() is

[
  {
    name: 'system.views',
    type: 'collection',
    options: {},
    info: {
      readOnly: false,
      uuid: UUID('1f8c78f1-a8c6-4b2a-9ac2-502b4b0499c1')
    },
    idIndex: { v: 2, key: [Object], name: '_id_' }
  },
  {
    name: 'MyTimeseries',
    type: 'timeseries',
    options: { expireAfterSeconds: Long('59'), timeseries: [Object] },
    info: { readOnly: false }
  },
  {
    name: 'system.buckets.MyTimeseries',
    type: 'collection',
    options: {
      validator: [Object],
      clusteredIndex: true,
      expireAfterSeconds: Long('59'),
      timeseries: [Object]
    },
    info: {
      readOnly: false,
      uuid: UUID('c0624c13-baad-4cdc-8127-2de0bb762970')
    }
  },
  {
    name: 'MyCollection',
    type: 'collection',
    options: {},
    info: {
      readOnly: false,
      uuid: UUID('ebd0de9e-b400-42ae-8249-cf0ef8f354a4')
    },
    idIndex: { v: 2, key: [Object], name: '_id_' }
  }
]

everything that is nested more than 2 levels is rendered as [Object], which is not ideal if you want to retrieve the options used to create a timeseries

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 )