explicitly create an array from an initializer list
Declared in <nlohmann/json.hpp>
[[nodiscard]]
static
basic_json
array(initializer_list_t init = {});
a JSON array value with the elements from init
The return value should not be discarded.
| Name | Description |
|---|---|
| init | initializer list with JSON values to use for the array |