|
Boost Users : |
Subject: Re: [Boost-users] [serialization] Implementing a JSON archive
From: Stepan Seycek (s.seycek_at_[hidden])
Date: 2011-09-16 09:37:19
Hi Leo,
what about JSONCPP (http://jsoncpp.sourceforge.net/). We use it for
interfacing with CouchDB.
BR,
Stepan
On 2011-09-16 11:06, Leo Cacciari wrote:
> Hi,
> for a project I'm working on, I need to be able to send JSON-encoded
> objects on a network connection. I though that extending the
> xml_[io]archive classes could do the trick, given that JSON, just like
> xml, is based on representing an object by a collection of NVPs
> (name-value pairs). However, I was unable to find an explication on
> _how_ to extend that class, and I lost myself very quickly when I tried
> to follow the code in the source.
>
> Thus I'm wondering...
>
> First, should I actually modify xml_[io]archive or should I extend
> text_[io]archive by adding serialization of NVPs?
>
> If, as I think, the right way is to extend text_[io]archive, and more
> so if I should actually extend/modify xml_[io]archive, does anyone have
> suggestion on how to do that?
>
> Even better, does anyone have a JSON serializer I could use in a
> (*commercial*) project?
>
> Thanks a lot for your help
>
> --
> Leo Cacciari
>
> Aliae nationes servitutem pati possunt. Populi Romani est propria
> libertas.
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net