Boost logo

Boost :

Subject: Re: [boost] [gsoc] JSON?
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2011-04-05 11:24:50

On 4/5/2011 3:45 AM, Sebastian Redl wrote:
> On 05.04.2011 07:11, Rene Rivera wrote:

>> Property Tree is not capable of faithfully representing the data that
>> can be stored in a JSON file.

> To be more precise, a ptree or wptree is not capable of doing this. A
> basic_ptree instantiated with JSON-specific data and key types would be
> (though it would then be a superset of what JSON can do).


But wouldn't it be nice to have a generic JSON parser with an iterator
based interface than can pull from a JSON data source; with a utility
translator that can fill an std::map(or hash_map) and std::vector with
key/values and values of boost::any(or equivalent) kind; that then
property_tree could use be much nicer :-) Especially since it then would
be possible for Boost Serialization to also use the same parser.

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ (msn) - grafik/
-- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail

Boost list run by bdawes at, gregod at, cpdaniel at, john at