[#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 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. == Synopsis Declared in `<baljsn_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int openElement(xref:bsl/string.adoc[bsl::string] const& name); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#