BloombergLP::baljsn::EncodeImplUtil::closeDocument

Print the characters that end a JSON document to outputStream.

Synopsis

Declared in <baljsn_encodeimplutil.h>

static
void
closeDocument(
    std::ostream* outputStream,
    EncoderOptions const& options);

Description

Print the sequence of characters that designate the end of a JSON document to the specified outputStream according to the specified encoding options. See the baljsn_encoderoptions for a description of the effects, if any, of each option in the options on the end of a JSON document.

Parameters

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