[#BloombergLP-bdljsn-Json_Initializer-2constructor-0c2]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json_Initializer.adoc[Json&lowbar;Initializer]::Json&lowbar;Initializer
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

Create a `Json&lowbar;Initializer` object containing a `JsonNull` in the internal variant&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0a.adoc[Json&lowbar;Initializer]();
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0d6.adoc[Json&lowbar;Initializer](xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64] value);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0d6.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0d1.adoc[Json&lowbar;Initializer](double value);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0d1.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-047.adoc[Json&lowbar;Initializer](float value);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-047.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing an initializer list with the value of the specified `il`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-049.adoc[Json&lowbar;Initializer](std::initializer&lowbar;list&lt;Json&lowbar;Initializer&gt; il);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-049.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing a pointer to the specified `json`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0ca.adoc[Json&lowbar;Initializer](xref:BloombergLP/bdljsn/Json.adoc[Json] const& json);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0ca.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing a pointer to the specified `jArr`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-072.adoc[Json&lowbar;Initializer](xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray] const& jArr);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-072.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `Json&lowbar;Initializer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-071.adoc[Json&lowbar;Initializer](xref:BloombergLP/bdljsn/JsonNull-0b.adoc[JsonNull] const&);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-071.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing a pointer to the specified `jNum`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-024.adoc[Json&lowbar;Initializer](xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber] const& jNum);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-024.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing a pointer to the specified `jObj`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-04d.adoc[Json&lowbar;Initializer](xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject] const& jObj);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-04d.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing a `string&lowbar;view` referring to the contents of the specified `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-02a.adoc[Json&lowbar;Initializer](xref:bsl/string.adoc[bsl::string] const& string);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-02a.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing a `string&lowbar;view` referring to the contents of the specified `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-09.adoc[Json&lowbar;Initializer](std::pmr::string const& string);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-09.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `Json&lowbar;Initializer`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-00.adoc[Json&lowbar;Initializer](std::string const& string);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing a `string&lowbar;view` containing the specified `sv`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0b.adoc[Json&lowbar;Initializer](std::string&lowbar;view const& sv);
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing a `string&lowbar;view` referring to the null&hyphen;terminated sequence pointed to by the specified `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-03.adoc[Json&lowbar;Initializer](char const* string);
----

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

Create a `Json&lowbar;Initializer` object containing the boolean value of the specified `value` in the internal variant&period; Note that (template parameter) `t&lowbar;BOOL` must be `bool`&semi; types that convert to `bool` (e&period;g&period;, pointers) are disallowed&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;BOOL&gt;
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-08.adoc[Json&lowbar;Initializer](
    t&lowbar;BOOL value,
    bool* = 0)
requires bsl&colon;&colon;is&lowbar;same&lt;t&lowbar;BOOL, bool&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/bdljsn/Json_Initializer/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create a `Json&lowbar;Initializer` object containing the value of the specified `value` in the internal variant&period; If `value` is a signed integral type, then the value is stored as a `long long`&period; If `value` is an unsigned integral type, then the value is stored as an `unsigned long long`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;INTEGRAL&gt;
xref:BloombergLP/bdljsn/Json_Initializer/2constructor-06.adoc[Json&lowbar;Initializer](
    t&lowbar;INTEGRAL value,
    int* = 0)
requires bsl&colon;&colon;is&lowbar;integral&lt;t&lowbar;INTEGRAL&gt;  &colon;&colon;value
                               &amp;&amp; !bsl&colon;&colon;is&lowbar;same&lt;t&lowbar;INTEGRAL, bool&gt;&colon;&colon;value;
----

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


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