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

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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
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]#Created with https://www.mrdocs.com[MrDocs]#
