MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / basic_json object

Function basic_json object

Source/Utils/json.hpp:18312–18316  ·  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

Source from the content-addressed store, hash-verified

18310 @since version 1.0.0
18311 */
18312 JSON_HEDLEY_WARN_UNUSED_RESULT
18313 static basic_json object(initializer_list_t init = {})
18314 {
18315 return basic_json(init, false, value_t::object);
18316 }
18317
18318 /*!
18319 @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