Create a Json object holding the specified boolean value.
Declared in <bdljsn_json.h>
explicit
Json(
bool boolean,
bslma::Allocator* basicAllocator = 0);
Create a Json object having the type bool and the same value as the specified boolean. Optionally specify the basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used to supply memory.
| Name | Description |
|---|---|
| boolean | boolean value to store |
| basicAllocator | memory allocator; null uses the default |