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

Return whether a subsequent value must supply a name&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
isNameNeeded() const;
----

== Description

Return `true` if a subsequent attempt to add a value must supply a `name`, and `false` otherwise&period; This will be `true` if `isFormattingObject()` is `true`, and `addMemberName()` was not the most recently called manipulator&period; That is, a name is needed if this formatter is currently in the context of formatting the members of a JSON object, and `addMemberName` has not been called to explicitly provide a name for the next member&period;

== Return Value

`true` if a subsequent value must supply a name, and `false` otherwise


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