[#BloombergLP-baljsn-SimpleFormatter-addMemberName]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/SimpleFormatter.adoc[SimpleFormatter]::addMemberName
:relfileprefix: ../../../
:mrdocs:

Print onto the stream supplied at construction the specified `name` in double&hyphen;quotes, preceded, if necessary, by a comma, and followed by a `&colon;`&period; The behavior is undefined unless `isNameNeeded()` is `true`&period; After this operation, `isNameNeeded()` will be `false`, and an immediately subsequent attempt to add a value (or open an object or array) should not provide a name&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
addMemberName(std::string&lowbar;view const& name);
----


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