[#BloombergLP-baljsn-EncodeImplUtil-encodeMemberPrefix-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil.adoc[EncodeImplUtil]::encodeMemberPrefix :relfileprefix: ../../../ :mrdocs: `encodeMemberPrefix` overloads == Synopses Declared in `<baljsn_encodeimplutil.h>` If the specified `isFirstMember` flag is `false`, encode a "comma" JSON token to the specified `formatter`, and do not encode a "comma" JSON token otherwise. If the specified `formattingMode` does not have the `bdlat_FormattingMode::e_UNTAGGED` bit set, encode a JSON "string" token having the specified `memberName` contents, and encode a JSON "colon" token after the string, and do not encode these tokens otherwise. If this operation is not successful, load an unspecified, human‐readable description of the error condition to the specified `logStream`. Optionally specify `isPrefixEmpty`. If this operation encodes a token to the formatter, load the value `false` to `isPrefixEmpty` if specified, and the value `true` otherwise. Return 0 on success, and a non‐zero value otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/baljsn/EncodeImplUtil/encodeMemberPrefix-040.adoc[encodeMemberPrefix]( FORMATTER* formatter, std::ostream* logStream, std::string_view const& memberName, bool isFirstMember); ---- [.small]#xref:BloombergLP/baljsn/EncodeImplUtil/encodeMemberPrefix-040.adoc[_» more..._]# Same as the preceding `encodeMemberPrefix` overload, using the specified `formattingMode`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/baljsn/EncodeImplUtil/encodeMemberPrefix-05.adoc[encodeMemberPrefix]( FORMATTER* formatter, std::ostream* logStream, std::string_view const& memberName, xref:BloombergLP/baljsn/EncodeImplUtil/FormattingMode.adoc[FormattingMode] formattingMode, bool isFirstMember); ---- [.small]#xref:BloombergLP/baljsn/EncodeImplUtil/encodeMemberPrefix-05.adoc[_» more..._]# Same as the preceding `encodeMemberPrefix` overload, optionally loading `isPrefixEmpty`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/baljsn/EncodeImplUtil/encodeMemberPrefix-04c.adoc[encodeMemberPrefix]( bool* isPrefixEmpty, FORMATTER* formatter, std::ostream* logStream, std::string_view const& memberName, xref:BloombergLP/baljsn/EncodeImplUtil/FormattingMode.adoc[FormattingMode] formattingMode, bool isFirstMember); ---- [.small]#xref:BloombergLP/baljsn/EncodeImplUtil/encodeMemberPrefix-04c.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#