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,
59 concepts::is_writable_output_type_v<
60 daw::remove_cvref_t<WritableType>> )>
62 concepts::is_writable_output_type_v<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,
92 concepts::is_writable_output_type_v<
93 daw::remove_cvref_t<WritableType>> )>
95 concepts::is_writable_output_type_v<daw::remove_cvref_t<WritableType>> )
96 constexpr
daw::rvalue_to_value_t<WritableType> to_json_array(
97 Container const &c, WritableType &&it,
98 options::output_flags_t<PolicyFlags...> = options::output_flags<> );
107 template<typename JsonElement = use_default, typename Container,
109 inline
std::
string to_json_array(
111 options::output_flags_t<PolicyFlags...> = options::output_flags<> );