Create a JsonArray from the specified elements.
Declared in <bdljsn_json.h>
JsonArray(
std::initializer_list<Json_Initializer> elements,
bslma::Allocator* basicAllocator = 0);
Create a JsonArray having a Json object for each element (in order) of the specified elements. Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used.
| Name | Description |
|---|---|
| elements | initializer-list of element values |
| basicAllocator | memory allocator; null uses the default |