Boost logo

Boost :

From: Vicram Rajagopalan (vicramrajagopalan_at_[hidden])
Date: 2019-09-23 21:56:38


On Mon, Sep 23, 2019 at 10:39 AM Vinnie Falco via Boost
<boost_at_[hidden]> wrote:
>
> On Mon, Sep 23, 2019 at 7:51 AM JF via Boost <boost_at_[hidden]> wrote:
> > I know that it is not standard JSON, but do you plan to support comments
> > (// ..., /* ... */)? It would be useful for storing configuration
>
> I used the same approach with the JSON parser that I used with Beast's
> HTTP parser. That is, a strict parser which strives to adhere to the
> letter of the spec.

I agree with this approach.
The popular nlohmann::json project made the same design decision, and
I think their reasoning is quite solid. See here:
https://github.com/nlohmann/json#comments-in-json

-Vicram


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