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

Function basic_json

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

! @brief create an empty value with a given type Create an empty JSON value with a given type. The value will be default initialized with an empty value which depends on the type: Value type | initial value ----------- | ------------- null | `null` boolean | `false` string | `""` number | `0` object | `{}` array | `[]`

Source from the content-addressed store, hash-verified

1472 @since version 1.0.0
1473 */
1474 basic_json(const value_t v)
1475 : m_type(v), m_value(v)
1476 {
1477 assert_invariant();
1478 }
1479
1480 /*!
1481 @brief create a null object

Callers 15

json_valueFunction · 0.70
basic_json binaryFunction · 0.70
basic_json arrayFunction · 0.70
basic_json objectFunction · 0.70
push_backFunction · 0.70
operator==Function · 0.70
operator!=Function · 0.70
operator<Function · 0.70
operator<=Function · 0.70
operator>Function · 0.70
operator>=Function · 0.70
basic_json from_cborFunction · 0.70

Calls 11

stringFunction · 0.85
set_parentsFunction · 0.70
createFunction · 0.70
to_jsonFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
moved_or_copiedMethod · 0.45
emplaceMethod · 0.45
is_beginMethod · 0.45
is_endMethod · 0.45

Tested by

no test coverage detected