[PropertyTree][variant] Reading JSON into a recursive variant.

31 Oct
2014
31 Oct
'14
10:51 a.m.
I have a recursive variant definition that can handle JSON data. Is there a way to read JSON data using PropertyTree into a recursive JSON? Here is the variant defn. #define BOOST_VARIANT_NO_FULL_RECURSIVE_VARIANT_SUPPORT #include <boost/variant.hpp> JSONNullType {}; boost::variant<std::string, double, bool, JSONNullType> jsonToken; typedef boost::make_recursive_variant< std::string, double, JSONNullType, std::map<std::string, boost::recursive_variant_>, std::vector<boost::recursive_variant_> >::type JSONValue; Regards, Arindam
3873
Age (days ago)
3873
Last active (days ago)
0 comments
1 participants
participants (1)
-
Arindam Mukherjee