# 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_native_string: CString `{ return bson_as_json(self, NULL); `}
+ fun to_c_string: CString `{ return bson_as_json(self, NULL); `}
# Wrapper for `bson_destroy()`.
#
`}
# Object id.
- fun id: String import CString.to_s_with_copy `{
+ fun id: String import CString.to_s `{
char str[25];
bson_oid_to_string(self, str);
- return CString_to_s_with_copy(str);
+ return CString_to_s(str);
`}
# Destroy `self`.