Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2024-03-01 01:41:51


On Thu, Feb 29, 2024 at 4:54 PM Zach Laine via Boost
<boost_at_[hidden]> wrote:
>...

I'm not sure if it is possible, but a good comparison could be
achieved by writing a Boost.Parser front end to parse JSON, and have
it call the corresponding member functions of
boost::json::detail::handler on an instance of that object here:

https://github.com/boostorg/json/blob/8f5b63510b07caa96f413777a412d930781fac5d/include/boost/json/detail/handler.hpp#L24

This will allow an apples to apples comparison, as it removes the
question of optimizing the destination container.

To retrieve the result after parsing call handler->st.release().

Thanks


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