[#BloombergLP-bdljsn-Json-2constructor-06f9] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::Json :relfileprefix: ../../../ :mrdocs: Create a `Json` object having the type `JsonArray`/`JsonObject`/ `JsonNumber` and the value of the specified `array`/`object`/ `number` object by moving the contents of `array`/`object`/`number` to the new object. Optionally specify `basicAllocator` used to supply memory. If `basicAllocator` is not specified, the allocator associated with `array`/`object`/`number` is propagated for use in the newly‐created `Json` object. The allocator or `array`/`object`/ `number` is unchanged and is otherwise left in (valid) unspecified state. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Json( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<JsonArray>] array, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#