[#BloombergLP-bdljsn-Json-2constructor-09f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::Json :relfileprefix: ../../../ :mrdocs: Create a `Json` object having the same structure as the specified `initializer`. Optionally specify the `basicAllocator` used to supply memory. If `basicAllocator` is not specified, the currently installed default allocator is used to supply memory. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_JSON_INITIALIZER> Json( t_JSON_INITIALIZER const& initializer, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0, void* = 0) requires bsl::is_same<t_JSON_INITIALIZER, Json_Initializer>::value; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#