|
Boost Users : |
Subject: Re: [Boost-users] [property_tree] Parsing vectors of objects
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2013-07-21 18:10:22
Thank ye. I did not know this, although it makes sense.
On Sun, Jul 21, 2013 at 10:11 AM, Klaim - Joël Lamotte
<mjklaim_at_[hidden]> wrote:
>
> On Sun, Jul 21, 2013 at 2:30 PM, Michael Powell <mwpowellhtx_at_[hidden]>
> wrote:
>>
>> I want to parse to and from Xml (or possibly Json) using the property
>> tree.
>
>
> Bad idea. See
> http://boost.2283326.n4.nabble.com/Using-property-tree-as-json-reader-writer-td4642292.html
>
> To be short: if you want to manipulate XML or JSON, use XML and JSON
> libraries.
> Property Tree is a format in itself and serialization functions are only
> there to make ptree easy to move into another format,
> not the other way arround. Because ptrees can't represent all xml or JSON
> can.
>
> PTree is useful both as container and if you don't care much about the
> specific input format. As soon as you decided
> to use a specifc input format which can represent more than ptree can
> represent, it becomes far less useful.
>
> Joel Lamotte
>
>
> _______________________________________________
> 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