[#BloombergLP-baljsn-EncodeImplUtil-openDocument]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil.adoc[EncodeImplUtil]::openDocument
:relfileprefix: ../../../
:mrdocs:

Print the characters that start a JSON document to `outputStream`&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;encodeimplutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
openDocument(
    std::ostream* outputStream,
    xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const& options);
----

== Description

Print the sequence of characters that designate the start of a JSON document to the specified `outputStream` according to the specified encoding `options`&period; See `baljsn&lowbar;encoderoptions` for a description of the effects, if any, of each option in the `options` on the start of a JSON document&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *outputStream*
| stream that receives the document&hyphen;start characters
| *options*
| encoding options controlling document start
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
