explicitly create an object from an initializer list
Declared in <nlohmann/json.hpp>
[[nodiscard]]
static
basic_json
object(initializer_list_t init = {});
a JSON object 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 object |