![]() |
DAW JSON Link
|
#include <daw_json_link_types.h>
Public Types | |
using | i_am_a_json_member_list = daw::fwd_pack< JsonMembers... > |
template<typename Constructor > | |
using | result_type = json_details::json_class_parse_result_t< Constructor, JsonMembers... > |
Static Public Member Functions | |
template<typename JsonClass , typename ParseState > | |
static constexpr DAW_ATTRIB_FLATTEN json_details::json_result< JsonClass > | parse_to_class (ParseState &parse_state, template_param< JsonClass >) |
template<typename OutputIterator , typename Value , template< class... > class Tuple, typename... Ts> | |
static constexpr OutputIterator | serialize (OutputIterator it, Tuple< Ts... > const &args, Value const &v) |
JsonMembers | JSON classes that map the relation ship from the json data to the classes constructor |
using daw::json::DAW_JSON_VER::json_member_list< JsonMembers >::i_am_a_json_member_list = daw::fwd_pack<JsonMembers...> |
using daw::json::DAW_JSON_VER::json_member_list< JsonMembers >::result_type = json_details::json_class_parse_result_t<Constructor, JsonMembers...> |
|
inlinestaticconstexpr |
Parse JSON data and construct a C++ class. This is used by parse_value to get back into a mode with a JsonMembers...
T | The result of parsing json_class |
ParseState | Input range type |
parse_state | JSON data to parse |
|
inlinestaticconstexpr |
Serialize a C++ class to JSON data
OutputIterator | An output iterator with a char value_type |
Args | tuple of values that map to the JSON members of v |
Value | Value type being serialized |
it | OutputIterator to append string data to |
args | members from C++ class |
v | value to be serialized as JSON object |