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

Encode a JSON object&hyphen;close token when `formattingMode` is tagged&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
encodeObjectSuffix(
    bool* isSuffixEmpty,
    FORMATTER* formatter,
    xref:BloombergLP/baljsn/EncodeImplUtil/FormattingMode.adoc[FormattingMode] formattingMode);
----

== Description

If the specified `formattingMode` does not have the `bdlat&lowbar;FormattingMode&colon;&colon;e&lowbar;UNTAGGED` bit set, encode a &quot;right brace&quot; JSON token to the specified `formatter`, and encoding nothing to the `formatter` otherwise&period; If this operation encodes a token to the `formatter`, load the value `false` to the specified `isSuffixEmpty`, and the value `true` otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *isSuffixEmpty*
| receives whether no suffix token was encoded
| *formatter*
| JSON formatter that receives the encoded tokens
| *formattingMode*
| formatting&hyphen;mode bit&hyphen;field for the object
|===


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