Wrapper for bson_as_json().

The bson_as_json() function shall encode bson as a JSON encoded UTF-8 string. The caller is responsible for freeing the resulting UTF-8 encoded string by calling bson_free() with the result.

Property definitions

mongodb $ NativeBSON :: to_c_string
	# Wrapper for `bson_as_json()`.
	#
	# The `bson_as_json()` function shall encode bson as a JSON encoded UTF-8 string.
	# The caller is responsible for freeing the resulting UTF-8 encoded string
	# by calling `bson_free()` with the result.
	fun to_c_string: CString `{ return bson_as_json(self, NULL); `}
lib/mongodb/native_mongodb.nit:62,2--67,64