toJSON

abstract fun toJSON(): PolyglotValue

Returns a JSON object representation of this buffer, with the data rendered into an array of byte values.