|
Boost Users : |
Subject: Re: [Boost-users] Handling JSON with Boost
From: Richi Lists (ricul77_at_[hidden])
Date: 2013-11-06 02:57:19
I used to use json_spirit, but I recently switched to libjsoncpp.
It's not boost, but I like it better.
Rgds
Richard
On Mo, 2013-11-04 at 21:01 +0100, Jauhien Piatlicki wrote:
> Hi all,
>
> I'm interested whether there exists a library for working with JSON in
> Boost that preserves data types?
>
> I know about property_tree, but if I read a valid JSON with it and then
> write it out it results in all fields being strings. This is because
> property_tree internally does not distinguish different value types. But
> I need something that can read e.g.
>
> {"number":42}
>
> get access to it and write it then in the same form.
>
> Thanks for answering,
> regards,
> Jauhien
>
> _______________________________________________
> 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