Boost logo

Boost Users :

Subject: Re: [Boost-users] Using property_tree as json reader/writer
From: niXman (i.nixman_at_[hidden])
Date: 2013-02-06 01:07:50


2013/2/5 Klaim - Joël Lamotte:
> We tried it in one of my previous jobs.
> You have to keep in mind that property_tree is about property trees, not
> about json or xml, which mean it don't map completely on these.
>
> On performance I couldn't tell, it was apparently fast enough for our use.
>
> However, beware, as I said before, it's not a JSon library, which mean it
> don't map with all the JSon capabilities.
>
> I used it a lot for different systems which would have data serialized in
> xml and
> json, matching the capabilities of property tree, so no problem.
>
> But when we tried to use it in systems that implied full JSON capabilities,
> like systems related to networking, property_tree was inappropriate.
> I dont' remember all the problems we had but one was no way to specify null.
>
> Anyway, just understand that if what you want is a JSON library, use a JSON
> library
> (http://stackoverflow.com/questions/245973/whats-the-best-c-json-parser)
> if you want a tree of properties with simple data in them, and be able to
> serialize them, then property_tree is far enough.
>
> Joel Lamotte

Thank you for explanation, Joel.

-- 
Regards,
niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingwbuilds/
___________________________________________________
Another online IDE: http://liveworkspace.org/

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