[#BloombergLP-baljsn-Encoder_Formatter-openElement] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Encoder_Formatter.adoc[Encoder_Formatter]::openElement :relfileprefix: ../../../ :mrdocs: Print the start‐of‐element designator for `name` onto the stream. == Synopsis Declared in `<baljsn_encoder.h>` [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`. Return 0 on success and a non‐zero value otherwise. == Return Value 0 on success and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *name* | name of the element being opened |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#