github stephenberry/glaze v1.3.1
1.3.1

latest releases: v9.0.0, v8.4.0, v8.3.0...
3 years ago
  • Added glz::merge, which allows users to merge JSON object types (suggested by @GJanos)
glz::obj o{"pi", 3.141};
std::map<std::string_view, int> map = {{"a", 1}, {"b", 2}, {"c", 3}};
auto merged = glz::merge{o, map};
std::string s{};
glz::write_json(merged, s); // will write out a single, merged object
// s is now: {"pi":3.141,"a":0,"b":2,"c":3}
  • Fixed null char* issues and added better concepts for char array handling (Thanks @maor-da)
  • Fixed std::max/std::min macro issues with MSVC (Thanks @alfedotov)

Don't miss a new glaze release

NewReleases is sending notifications on new releases.