Create a Json object having the type JsonNumber and the value of the specified number object by moving the contents of number to the new object. Optionally specify basicAllocator used to supply memory. If basicAllocator is not specified, the allocator associated with number is propagated for use in the newly‐created Json object. The allocator of number is unchanged and is otherwise left in (valid) unspecified state.

Synopsis

Declared in <bdljsn_json.h>

explicit
Json(
    bslmf::MovableRef<JsonNumber> number,
    bslma::Allocator* basicAllocator = 0);

Created with MrDocs