[#BloombergLP-baljsn-Formatter-2constructor-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Formatter.adoc[Formatter]::Formatter :relfileprefix: ../../../ :mrdocs: Create a `Formatter` object having the specified `stream`, `usePrettyStyle`, `initialIndentLevel`, `spacesPerLevel`, `escapeForwardSlash`, and `basicAllocator` attributes. == Synopsis Declared in `<baljsn_formatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Formatter( std::ostream& stream, bool usePrettyStyle, int initialIndentLevel, int spacesPerLevel, bool escapeForwardSlash, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#