[#BloombergLP-baljsn-SimpleFormatter-openObject-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/SimpleFormatter.adoc[SimpleFormatter]::openObject
:relfileprefix: ../../../
:mrdocs:

`openObject` overloads

== Synopses

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

Print onto the stream supplied at construction the sequence of characters designating the start of an object (referred to as an &quot;object&quot; in JSON), preceded, if necessary, by a comma&period; The behavior is undefined unless `isNameNeeded()` is `false`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/baljsn/SimpleFormatter/openObject-0c.adoc[openObject]();
----

[.small]#xref:BloombergLP/baljsn/SimpleFormatter/openObject-0c.adoc[_» more&period;&period;&period;_]#

Print onto the stream supplied at construction the sequence of characters designating the start of an object (referred to as an &quot;object&quot; in JSON) with the specified `name` , preceded, if necessary, by a comma&period; The behavior is undefined unless `isNameNeeded()` is `true`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/baljsn/SimpleFormatter/openObject-02.adoc[openObject](std::string&lowbar;view const& name);
----

[.small]#xref:BloombergLP/baljsn/SimpleFormatter/openObject-02.adoc[_» more&period;&period;&period;_]#


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