ClikaRT::json::Json::Member
struct
Header: ClikaRT/json/json.h
A key/value pair inside a Json::object({...}) literal. Built implicitly from the braced pair ({"key", value}); the implicit constructors are deliberate: the braced literal is this type's whole entry point. key is a non-owning view; keep its backing alive for the call (a string literal is fine).
Member functions
Member(string_view, Json)
Member(std::string_view member_key, Json member_value)
A member whose value is an already-built Json, the nesting form: {"cfg", Json::object({...})}.
Declared in ClikaRT/json/json.h, line 252
Member(string_view, T)
template <``typename T, std::enable_if_t<!std::is_same_v<std::remove_cv_t<std::remove_reference_t<T>>, Json>, int> = 0``>Member(std::string_view member_key, T&& scalar)
A member whose value is a scalar. Deduces the JSON type from T exactly as assignment (obj["k"] = v) does; the deducing operator= is the one home of that mapping; this constructor delegates to it.
Declared in ClikaRT/json/json.h, line 260
Data members
key
std::string_view key
The member's key (a non-owning view).
Declared in ClikaRT/json/json.h, line 246
value
Json value
The member's value.
Declared in ClikaRT/json/json.h, line 248