21 Sep
2020
21 Sep
'20
4:49 p.m.
On Mon, Sep 21, 2020 at 9:44 AM Mathias Gaunard
s.object_begin(); s.key("bar"); Bar bar = deserialize<Bar>(s); s.key("baz"); string baz = s.string(); s.object_end(); return Foo{std::move(bar), std::move(baz)};
This looks very much like it depends on the order of appearance of keys in the JSON, which is non-standard.
In both cases, I'd like to read/write my data from/to JSON with the same framework.
Why? What specifically, is the requirement here? Thanks