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

&num;&num; Implementation Note This function purposefully ignores the `EncodeEmptyArrays` option in the specified `options` and always encodes the value of the specified `member` array&period; The caller is responsible for checking the value of this option and deciding whether to obey the option or not&period; Callers that encode array&hyphen;valued attributes of sequences must always obey the option&period; Callers that encode array&hyphen;valued selections of choices must never obey the option, and must always encode the array value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
int
encodeMember(
    bool* isMemberEmpty,
    FORMATTER* formatter,
    std::ostream* logStream,
    std::string&lowbar;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&lowbar;TypeCategory::Array] category);
----


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