6 #ifndef METALL_JSON_PARSE_HPP
7 #define METALL_JSON_PARSE_HPP
10 #include <string_view>
18 namespace bj = boost::json;
27 template <
typename allocator_type = std::allocator<std::
byte>>
29 std::string_view input_json_string,
30 const allocator_type &allocator = allocator_type())
32 template <
typename allocator_type>
34 const allocator_type &allocator)
38 auto bj_value =
bj::parse(input_json_string.data(), ec);
40 std::cerr <<
"Failed to parse: " << ec.message() << std::endl;