[#BloombergLP-bdljsn-Json-2constructor-066] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::Json :relfileprefix: ../../../ :mrdocs: Create a `Json` object holding the specified `array`. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Json( xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray] const& array, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Create a `Json` object having the type `JsonArray`/`JsonObject`/ `JsonNumber` and the value of the specified `array`/`object`/`number`. Optionally specify `basicAllocator` used to supply memory. If `basicAllocator` is not specified, the currently installed default allocator is used to supply memory. == Parameters [cols="1,4"] |=== | Name| Description | *array* | array value to store | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#