![]() |
DAW JSON Link
|
#include <daw_json_link.h>
Public Types | |
using | base_type = json_details::unwrap_type< T, Nullable > |
using | constructor_t = FromJsonConverter |
using | from_converter_t = FromJsonConverter |
using | i_am_a_json_type = void |
using | parse_to_t = std::invoke_result_t< FromJsonConverter, std::string_view > |
using | to_converter_t = ToJsonConverter |
Static Public Attributes | |
static constexpr JsonParseTypes | base_expected_type = JsonParseTypes::Custom |
static constexpr CustomJsonTypes | custom_json_type = CustomJsonType |
static constexpr JsonParseTypes | expected_type |
static constexpr daw::string_view | name = Name |
static constexpr bool | nullable = Nullable == JsonNullable::Nullable |
static constexpr JsonBaseParseTypes | underlying_json_type |
Allow parsing of a nullable type that does not fit
Name | Name of JSON member to link to |
T | type of value being constructed |
FromJsonConverter | Callable that accepts a std::string_view of the range to parse |
ToJsonConverter | Returns a string from the value |
CustomJsonType | JSON type value is encoded as literal/string |
Allow parsing of a type that does not fit
Name | Name of JSON member to link to |
T | type of value being constructed |
FromJsonConverter | Callable that accepts a std::string_view of the range to parse. The default requires an overload of from_string( daw::tag<T>, std::string_view ) that returns a T |
ToJsonConverter | Returns a string from the value. The default requires a to_string( T const & ) overload that returns a String like type |
CustomJsonType | JSON type value is encoded as literal/string |
Nullable | Can the member be missing or have a null value |
using daw::json::json_custom< Name, T, FromJsonConverter, ToJsonConverter, CustomJsonType, Nullable >::base_type = json_details::unwrap_type<T, Nullable> |
using daw::json::json_custom< Name, T, FromJsonConverter, ToJsonConverter, CustomJsonType, Nullable >::constructor_t = FromJsonConverter |
using daw::json::json_custom< Name, T, FromJsonConverter, ToJsonConverter, CustomJsonType, Nullable >::from_converter_t = FromJsonConverter |
using daw::json::json_custom< Name, T, FromJsonConverter, ToJsonConverter, CustomJsonType, Nullable >::i_am_a_json_type = void |
using daw::json::json_custom< Name, T, FromJsonConverter, ToJsonConverter, CustomJsonType, Nullable >::parse_to_t = std::invoke_result_t<FromJsonConverter, std::string_view> |
using daw::json::json_custom< Name, T, FromJsonConverter, ToJsonConverter, CustomJsonType, Nullable >::to_converter_t = ToJsonConverter |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |