BloombergLP::baljsn::EncodeImplUtil::openDocument

Print the characters that start a JSON document to outputStream.

Synopsis

Declared in <baljsn_encodeimplutil.h>

static
void
openDocument(
    std::ostream* outputStream,
    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. See baljsn_encoderoptions for a description of the effects, if any, of each option in the options on the start of a JSON document.

Parameters

NameDescription
outputStreamstream that receives the document-start characters
optionsencoding options controlling document start