create a container (array or object) from an initializer list
Declared in <nlohmann/json.hpp>
basic_json(
initializer_list_t init,
bool type_deduction = true,
value_t manual_type = value_t::array);
| Name | Description |
|---|---|
| init | initializer list with JSON values |
| type_deduction | whether to automatically deduce whether to create an array or an object from the initializer list init |
| manual_type | the type to create when type_deduction is false |