[#BloombergLP-baljsn-SimpleFormatter-2constructor-069] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/SimpleFormatter.adoc[SimpleFormatter]::SimpleFormatter :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<baljsn_simpleformatter.h>` Create a `SimpleFormatter` that writes JSON to the specified `stream`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/baljsn/SimpleFormatter/2constructor-066.adoc[SimpleFormatter]( std::ostream& stream, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/baljsn/SimpleFormatter/2constructor-066.adoc[_» more..._]# Create a `SimpleFormatter` object having the same value as `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/baljsn/SimpleFormatter/2constructor-0e.adoc[SimpleFormatter]( xref:BloombergLP/baljsn/SimpleFormatter.adoc[SimpleFormatter] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- [.small]#xref:BloombergLP/baljsn/SimpleFormatter/2constructor-0e.adoc[_» more..._]# Create a `SimpleFormatter` that writes JSON to `stream` using `encoderOptions`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/baljsn/SimpleFormatter/2constructor-06d.adoc[SimpleFormatter]( std::ostream& stream, xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions] const& encoderOptions, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/baljsn/SimpleFormatter/2constructor-06d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *stream* | output stream for formatted JSON | *basicAllocator* | memory allocator; null uses the default | *original* | object to copy | *encoderOptions* | options configuring JSON output |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#