From: Peter Dimov (pdimov_at_[hidden])
Date: 2020-09-22 13:21:30


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.