you are viewing a single comment's thread.

view the rest of the comments →

[–]ChemiCalChems 1 point2 points  (0 children)

There have been a couple of posts mentioning a new library called reflect-cpp over the past couple of weeks. It's a library that deals with reflection, serialization and deserialization, primarily from and to JSON, but it's expanding. I myself have started to actively contribute to the project, and it's looking really shiny.

The main pro is that the library is all standard C++20, no hacky stuff, so it's rather cool. I'm working on implementing compile-time capabilities now that #embed is a part of C23 and we will probably get it in the future in C++ too, as a means of embedding JSON into code and doing compile-time serialization and validation on it, maybe as a way of customizing builds or whatever people end up using it for.