I see one issue on the unknown field output. Here is the sample code:
struct my_struct
{
int i = 287;
std::unordered_map<std::string, std::string> unknown;
};
template <>
struct glz::meta<my_struct> {
using T = my_struct;
static constexpr auto value = glz::object(
"i", &T::i
);
static constexpr auto unknown_write{ &T::unknown };
//static constexpr auto unknown_read{
// &T::unknown
//};
};
my_struct obj;
std::string buffer;
auto ec = glz::write < glz::opts{ .prettify = true } > (obj, buffer);
The output is as below. There is an additional comma (,) was generated after the field "i" because of empty "unknown". Can it be fixed or any workaround?
Hello,
I see one issue on the unknown field output. Here is the sample code:
The output is as below. There is an additional comma (,) was generated after the field "i" because of empty "unknown". Can it be fixed or any workaround?