Stephen Berry

Results 391 comments of Stephen Berry

Glaze recently got `skip_if` support for `glz::meta`: #2029 More documentation here: https://stephenberry.github.io/glaze/skip-keys/?h=skip_if#combining-skip-and-skip_if This offers the nuanced skipping that you wanted: ```c++ struct Timing { std::optional conditions; std::optional se; }; template...

Here is somewhat of a hack that @anders-wind came up with. I haven't tested this exact code, but it creates a wrapping buffer that can be passed to Glaze to...

You can now avoid writing the headers when writing CSV. This means that you can just call `.append(more_csv)` to your output, or add the new lines to a file. See...

Thanks for reporting this! Will try to look into it soon.

@p-selini, your example is using `glz::get` incorrectly, and the function is returning an expected with an error code. Your segfault is caused because you aren't checking if the result has...

@p-selini, What you want is `glz::get_as_json`. This code works on compiler explorer: ```c++ #include #include #include int main() { std::string buffer = R"({"conn_idx":{"f":10}})"; auto z = glz::get_as_json(buffer); if (z) {...

I see your issue is with `-fsanitize=null`. The output: `is not a constant expression` leads me to think that this is a compiler bug with that flag on. Because it...

Can you use JMESPath? Or, do you need JSON Pointer syntax? JMESPath documentation is here: https://github.com/stephenberry/glaze/blob/main/docs/JMESPath.md

JMESPath is a much bigger spec than JSON Pointer syntax, so its partial support is still decent. Under the hood the implementations are quite different, JMESPath allows more efficient implementations...

Thanks for reporting this! I haven't yet tested GCC 15 with Glaze, but I've been looking forward to its release. Will try to look into this soon.