Boost logo

Boost Users :

Subject: Re: [Boost-users] [OT] Interested in good (fast, robust)
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2009-12-01 14:40:37

On Tue, Dec 1, 2009 at 1:24 PM, Richard Ulrich <richi_at_[hidden]> wrote:
> I'm using json_spirit from
> for parsing big but simple json files.
> So far I didn't have any problems with it.

One objection I have with json_spirit is that its value is rather
heavy memory wise, and also forces initializing all of the members.
Maybe that's no longer true, I got the code below in Mar09. I think
something boost::variant-based would be more suitable (incorrectly
mentioned using tuple in my first post, when I meant variant). --DD

namespace json_spirit {
    enum Value_type { ... };
    typedef std::vector< Pair > Object;
    typedef std::vector< Value > Array;

    class Value { ...
        Value_type type_;
        std::string str_;
        Object obj_;
        Array array_;
        bool bool_;
        int i_;
        double d_;

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at