[#BloombergLP-ball-RecordJsonFormatter-2constructor-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RecordJsonFormatter.adoc[RecordJsonFormatter]::RecordJsonFormatter
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;ball&lowbar;recordjsonformatter&period;h&gt;`

Create a record JSON formatter having the same format specification and record separator as in the specified `original` formatter, and adopting all outstanding memory allocations and the allocator associated with the `original` formatter&period; `original` is left in a valid but unspecified state&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordJsonFormatter/2constructor-03.adoc[RecordJsonFormatter](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;RecordJsonFormatter&gt;] original) noexcept;
----

[.small]#xref:BloombergLP/ball/RecordJsonFormatter/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a record JSON formatter having a default format specification and record separator&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the allocator is used&period; The default format specification is&colon; &grave; &lsqb;&quot;timestamp&quot;, &quot;processId&quot;, &quot;threadId&quot;, &quot;severity&quot;, &quot;file&quot;, &quot;line&quot;,&rsqb; &quot;category&quot;, &quot;message&quot;, &quot;attributes&quot;&rsqb; &grave; The default record separator is &quot;n&quot;&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordJsonFormatter/2constructor-06.adoc[RecordJsonFormatter](xref:BloombergLP/ball/RecordJsonFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordJsonFormatter/2constructor-06.adoc[_» more&period;&period;&period;_]#

Create a record JSON formatter, having the same format specification and record separator as in the specified `original` formatter&period; The format specification of `original` is moved to the new object, and all outstanding memory allocations and the specified `allocator` are adopted if `allocator &equals;&equals; original&period;get&lowbar;allocator()`&period; `original` is left in a valid but unspecified state&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordJsonFormatter/2constructor-01b.adoc[RecordJsonFormatter](
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;RecordJsonFormatter&gt;] original,
    xref:BloombergLP/ball/RecordJsonFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator);
----

[.small]#xref:BloombergLP/ball/RecordJsonFormatter/2constructor-01b.adoc[_» more&period;&period;&period;_]#

Create a record JSON formatter initialized to the value of the specified `original` record formatter&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/RecordJsonFormatter/2constructor-010.adoc[RecordJsonFormatter](
    xref:BloombergLP/ball/RecordJsonFormatter.adoc[RecordJsonFormatter] const& original,
    xref:BloombergLP/ball/RecordJsonFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordJsonFormatter/2constructor-010.adoc[_» more&period;&period;&period;_]#


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