Boost logo

Boost :

From: Bjorn Reese (breese_at_[hidden])
Date: 2020-09-22 12:48:32


On 2020-09-22 14:20, Peter Dimov via Boost wrote:

> I don't think so. In fact the reverse is true. Deserialization from DOM
> is trivial. Making a deserialization library build a DOM is decidedly
> nontrivial. I'm not sure how it could be done.

It is easy with a pull parser. The following header shows both direct
serialization from DOM to JSON, and direct deserizalization from JSON to
DOM:

 
https://github.com/breese/trial.protocol/blob/develop/include/trial/protocol/json/serialization/dynamic/variable.hpp


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk