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