[#BloombergLP-baljsn-Encoder_Formatter-openElement]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Encoder_Formatter.adoc[Encoder&lowbar;Formatter]::openElement
:relfileprefix: ../../../
:mrdocs:

Print the start&hyphen;of&hyphen;element designator for `name` onto the stream&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
openElement(xref:bsl/string.adoc[bsl::string] const& name);
----

== Description

Print onto the stream supplied at construction the sequence of characters designating the start of an element having the specified `name`&period; Return 0 on success and a non&hyphen;zero value otherwise&period;

== Return Value

0 on success and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| name of the element being opened
|===


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