|
Boost Users : |
Subject: [Boost-users] [PropertyTree][variant] Reading JSON into a recursive variant.
From: Arindam Mukherjee (arindam.mukerjee_at_[hidden])
Date: 2014-10-31 06:51:40
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
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