
Hi, 2011/4/5 Rene Rivera <grafikrobot@gmail.com>
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.
I made a GSoC proposal for a JSON library. More details can be viewed here: https://docs.google.com/document/pub?id=1qjEeIzfLstNIks4y6iGYmTn7cZSSsfIOULe... Comments are welcome! Regards, -- Murilo Adriano Vasconcelos http://murilo.wordpress.com