22 Sep
2020
22 Sep
'20
1:21 p.m.
VinÃcius dos Santos Oliveira wrote:
The end game would be:
```json { "foo": 42, "bar": "hello world" } ```
Switch "foo" and "bar" here for generality.
(de)serializes effortlessly to:
```cpp struct Foobar { int foo; std::string bar; }; ```
It's already possible to make this work using Boost.JSON. https://pdimov.github.io/describe/doc/html/describe.html#example_from_json Just add the `parse` call.
Are you willing to submit a new reflection library to Boost?
Yes, I'm waiting for the review to end to not detract from the Boost.JSON discussions.