MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / basic_json object

Function basic_json object

3rd/nlohmann_json/include/nlohmann/json.hpp:1959–1963  ·  view source on GitHub ↗

! @brief explicitly create an object from an initializer list Creates a JSON object value from a given initializer list. The initializer lists elements must be pairs, and their first elements must be strings. If the initializer list is empty, the empty object `{}` is created. @note This function is only added for symmetry reasons. In contrast to the related function @ref

Source from the content-addressed store, hash-verified

1957 @since version 1.0.0
1958 */
1959 JSON_HEDLEY_WARN_UNUSED_RESULT
1960 static basic_json object(initializer_list_t init = {})
1961 {
1962 return basic_json(init, false, value_t::object);
1963 }
1964
1965 /*!
1966 @brief construct an array with count copies of given value

Callers

nothing calls this directly

Calls 1

basic_jsonFunction · 0.70

Tested by

no test coverage detected