6 #ifndef METALL_JSON_SERIALIZE_HPP
7 #define METALL_JSON_SERIALIZE_HPP
18 namespace bj = boost::json;
21 template <
typename allocator_type>
26 template <
typename allocator_type>
29 for (
const auto &elem : input) {
30 object[elem.key().data()] = value_to<bj::value>(elem.value());
35 template <
typename allocator_type>
38 for (
const auto &elem : input) {
39 array.emplace_back(value_to<bj::value>(elem));
44 template <
typename char_type,
typename traits,
typename allocator_type>
50 template <
typename allocator_type>
56 template <
typename allocator_type>
62 template <
typename allocator_type>