[#BloombergLP-baljsn-EncodeImplUtil-encodeMember-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncodeImplUtil.adoc[EncodeImplUtil]::encodeMember :relfileprefix: ../../../ :mrdocs: ## Implementation Note This function purposefully ignores the `EncodeEmptyArrays` option in the specified `options` and always encodes the value of the specified `member` array. The caller is responsible for checking the value of this option and deciding whether to obey the option or not. Callers that encode array‐valued attributes of sequences must always obey the option. Callers that encode array‐valued selections of choices must never obey the option, and must always encode the array value. == Synopsis Declared in `<baljsn_encodeimplutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static int encodeMember( bool* isMemberEmpty, FORMATTER* formatter, std::ostream* logStream, std::string_view const& memberName, TYPE const& member, xref:BloombergLP/baljsn/EncodeImplUtil/FormattingMode.adoc[FormattingMode] formattingMode, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const& options, bool isFirstMember, xref:BloombergLP/bdlat_TypeCategory/Array.adoc[bdlat_TypeCategory::Array] category); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#