|
template<JSONNAMETYPE NewName> |
using | with_name = json_key_value_array< NewName, Container, JsonValueType, JsonKeyType, Constructor, Nullable > |
|
using | without_name = json_base::json_key_value_array< Container, JsonValueType, JsonKeyType, Constructor, Nullable > |
|
using | base_type = json_details::unwrapped_t< Container, Nullable > |
|
using | constructor_t = json_details::json_class_constructor_t< base_type, Constructor > |
|
using | i_am_a_json_type = void |
|
using | json_class_t = json_class< tuple_json_mapping< json_key_t, json_value_t >, std::conditional_t<(Nullable==JsonNullable::MustExist), default_constructor< tuple_json_mapping< json_key_t, json_value_t > >, nullable_constructor< tuple_json_mapping< json_key_t, json_value_t > > >, class_opts_def > |
|
using | json_key_t = json_details::copy_name_when_noname< json_details::json_deduced_type< JsonKeyType >, json_details::default_key_name > |
|
using | json_value_t = json_details::copy_name_when_noname< json_details::json_deduced_type< JsonValueType >, json_details::default_value_name > |
|
using | parse_to_t = typename json_details::construction_result< Nullable !=JsonNullable::MustExist, Constructor, base_type >::type |
|
template<JSONNAMETYPE NewName> |
using | with_name = daw::json::json_key_value_array< NewName, Container, JsonValueType, JsonKeyType, Constructor, Nullable > |
|
using | without_name = json_key_value_array |
|
template<
JSONNAMETYPE Name, typename Container, typename JsonValueType, typename JsonKeyType, typename Constructor,
JsonNullable Nullable>
struct daw::json::DAW_JSON_VER::json_key_value_array< Name, Container, JsonValueType, JsonKeyType, Constructor, Nullable >
Map a KV type json array [ {"key": ValueOfKeyType, "value": ValueOfValueType},... ] to a c++ class. needs to be constructable with a pointer, size
- Template Parameters
-
Name | name of JSON member to link to |
Container | type to put values in |
JsonValueType | Json type of value in kv pair( e.g. json_number, json_string, ... ). If specific json member type isn't specified, the member name defaults to "value" |
JsonKeyType | type of key in kv pair. If specific json member type isn't specified, the key name defaults to "key" |
Constructor | A callable used to make Container, default will use the Containers constructor. Both normal and aggregate are supported |
Nullable | Can the member be missing or have a null value |