nlohmann::basic_json::array

explicitly create an array from an initializer list

Synopsis

Declared in <nlohmann/json.hpp>

[[__warn_unused_result__]]
static
basic_json
array(initializer_list_t init = {});

Return Value

a class to store JSON values

Parameters

NameDescription
inithelper type for initializer lists of basic_json values