Boost logo

Boost :

From: Boris (boriss_at_[hidden])
Date: 2008-04-07 05:11:45


On Mon, 07 Apr 2008 05:24:52 +0200, Jeremy Cowles
<jeremy.cowles_at_[hidden]> wrote:

Hi Jeremy,

> I am a student and am writing a proposal for Google Summer of Code based
> on
> the JSON
> idea<http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Google_Summer_Of_Code_2008#json>.
> I was wondering if anyone has any addition thoughts on JSON serialization
> and how people feel about it in general.

there is a JSON parser (based on Boost.Spirit) and a writer in
Boost.PropertyTree (see
http://kaalus.atspace.com/ptree/doc/index.html#json_parser). The problem
with the writer is though that all values (except numbers) are written as
strings (for example you load a boolean value true but it's written as
"true"). You might be able to use the code from Boost.PropertyTree though
(and maybe improve the writer, too ;).

Boris


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