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

Create a record JSON formatter having a default format specification and record separator&period;

== Synopsis

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

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

== Description

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; 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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *allocator*
| memory allocator used to supply memory
|===


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