Create a Json object from the specified initializer.
Declared in <bdljsn_json.h>
template<class t_JSON_INITIALIZER>
Json(
t_JSON_INITIALIZER const& initializer,
bslma::Allocator* basicAllocator = 0)
requires bsl::is_same<t_JSON_INITIALIZER,
Json_Initializer>::value;
Create a Json object having the same structure as the specified initializer. 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 |
|---|---|
| initializer | list-initialization value |
| basicAllocator | memory allocator; null uses the default |