toString

fun toString(simplified: Boolean): String(source)

JSON representation of this expression.

By default, simplifications are enabled. Set simplified to false to disable simplifications.


override fun toString(): String(source)

JSON representation of this expression.

Note that since this class represents a BSON value, and BSON libraries often only support documents, the actual value may be surrounded by some boilerplate (like an array or a useless value).