21 template<
auto... PolicyFlags>
24 ( json_details::is_output_option_v<decltype( PolicyFlags )> and ... ),
25 "Only valid output flags can be used. See cookbook "
26 "output_options.md" );
28 json_details::serialization::set_bits(
29 json_details::serialization::default_policy_flag, PolicyFlags... );
36 json_details::serialization::default_policy_flag;
41 template<
auto... PolicyFlags>
56 template<
typename JsonClass = use_default,
typename Value,
57 typename WritableType = std::string,
60 daw::remove_cvref_t<WritableType>> )>
63 constexpr
daw::rvalue_to_value_t<WritableType>
to_json(
64 Value const &value, WritableType &&it =
std::
string{ },
65 options::output_flags_t<PolicyFlags...> = options::output_flags<> );
75 template<
typename JsonClass = use_default,
typename Value,
77 inline std::string
to_json( Value
const &value,
78 options::output_flags_t<PolicyFlags...> );
89 template<
typename JsonElement = use_default,
typename Container,
90 typename WritableType,
93 daw::remove_cvref_t<WritableType>> )>
97 Container const &c, WritableType &&it,
98 options::output_flags_t<PolicyFlags...> = options::
output_flags<> );
107 template<typename JsonElement = use_default, typename Container,
111 options::output_flags_t<PolicyFlags...> = options::
output_flags<> );
#define DAW_JSON_ENABLEIF(...)
std::uint32_t json_options_t
std::string to_json(Value const &value, options::output_flags_t< PolicyFlags... > flgs)
std::string to_json_array(Container const &c, options::output_flags_t< PolicyFlags... > flgs)
constexpr auto output_flags
Specify output policy flags in to_json calls. See cookbook item output_options.md.
constexpr bool is_writable_output_type_v
Customization point traits.
DAW_JSON_REQUIRES(boost::describe::has_describe_members< T >::value and use_boost_describe_v< T >) struct json_data_contract< T >
Specify output policy flags in to_json calls. See cookbook item output_options.md.
#define DAW_JSON_VER
The version string used in namespace definitions. Must be a valid namespace name.