[#BloombergLP-bdljsn-JsonObject-2constructor-030] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]::JsonObject :relfileprefix: ../../../ :mrdocs: Create a `JsonObject` by moving from `original` using `basicAllocator`. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- JsonObject( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<JsonObject>] original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- == Description Create a `JsonObject` having the same value as the specified `original`. Use the specified `basicAllocator` to supply memory. If `basicAllocator == original.allocator()` the value of `original` will be moved (in constant time) to the newly‐created `JsonObject`, and `original` will be left in a valid but unspecified state. Otherwise, `original` is copied, and `basicAllocator` used to supply memory. == Parameters [cols="1,4"] |=== | Name| Description | *original* | source object | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#