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

If the specified `formattingMode` does not have the `bdlat&lowbar;FormattingMode&colon;&colon;e&lowbar;UNTAGGED` bit set, encode a &quot;left 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 `isPrefixEmpty`, and the value `true` otherwise&period;

== Synopsis

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

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


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