Create a JsonObject by moving from original using basicAllocator.
Declared in <bdljsn_json.h>
JsonObject(
bslmf::MovableRef<JsonObject> original,
bslma::Allocator* basicAllocator);
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.
| Name | Description |
|---|---|
| original | source object |
| basicAllocator | memory allocator; null uses the default |