[#BloombergLP-baljsn-EncodeImplUtil-encodeObjectPrefix] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil.adoc[EncodeImplUtil]::encodeObjectPrefix :relfileprefix: ../../../ :mrdocs: Encode a JSON object‐open token when `formattingMode` is tagged. == Synopsis Declared in `<baljsn_encodeimplutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void encodeObjectPrefix( bool* isPrefixEmpty, FORMATTER* formatter, xref:BloombergLP/baljsn/EncodeImplUtil/FormattingMode.adoc[FormattingMode] formattingMode); ---- == Description If the specified `formattingMode` does not have the `bdlat_FormattingMode::e_UNTAGGED` bit set, encode a "left brace" JSON token to the specified `formatter`, and encoding nothing to the `formatter` otherwise. If this operation encodes a token to the formatter, load the value `false` to the specified `isPrefixEmpty`, and the value `true` otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *isPrefixEmpty* | receives whether no prefix token was encoded | *formatter* | JSON formatter that receives the encoded tokens | *formattingMode* | formatting‐mode bit‐field for the object |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#