
4 Nov
2013
4 Nov
'13
10:08 p.m.
On 4 November 2013 20:01, Jauhien Piatlicki
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.
You may check https://github.com/cierelabs/json_spirit developed by the Spirit team. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net