.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "BSON_JSON_OPTS_T" "3" "May 02, 2024" "1.27.0" "libbson" .sp BSON to JSON encoding options .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX #include typedef struct _bson_json_opts_t bson_json_opts_t; bson_json_opts_t * bson_json_opts_new (bson_json_mode_t mode, int32_t max_len); void bson_json_opts_destroy (bson_json_opts_t *opts); .EE .UNINDENT .UNINDENT .SH DESCRIPTION .sp The \fI\%bson_json_opts_t\fP structure contains options for encoding BSON into \fI\%MongoDB Extended JSON\fP\&. .sp The \fBmode\fP member is a \fI\%bson_json_mode_t\fP defining the encoding mode. .sp The \fBmax_len\fP member holds a maximum length for the resulting JSON string. Encoding will stop once the serialised string has reached this length. To encode the full BSON document, \fBBSON_MAX_LEN_UNLIMITED\fP can be used. .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 .nf \fI\%bson_as_json_with_opts()\fP .fi .sp .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .