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

Component&hyphen;private helper that captures values for JSON list&hyphen;initialization&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Json&lowbar;Initializer;
----

== Description

This component&hyphen;private class is designed capture a set of values that can be used to initialize a `Json` object, or an element in a `JsonArray`, or the &quot;value&quot; portion of a `JsonObject` member&period; This class is not modifiable, and (except for small types like `int`) does not own the objects that it holds&period; The purpose here is to enable list&hyphen;initialization (including nested lists) of `Json`, `JsonArray`, and `JsonObject` objects&period; The lifetime of a `Json&lowbar;Initializer` object should not exceed that of list&hyphen;initialization expression because pointers held here would no longer be valid&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/Json_Initializer/Storage.adoc[`Storage`] 
| Variant type used to store the captured initializer value&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/Json_Initializer/2constructor-0c2.adoc[`Json&lowbar;Initializer`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdljsn/Json_Initializer/get_storage.adoc[`get&lowbar;storage`] 
| Return a reference providing non&hyphen;modifiable access to the internal variant&period;
|===



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