Bit sad that Boosts recursive variant isn't mentioned. It has been around for ages and makes this kind of thing a lot easier:
#include <boost/variant/recursive_variant.hpp>
using Document = boost::make_recursive_variant<
std::string,
int64_t,
bool,
std::vector<boost::recursive_variant_>,
std::map<std::string, boost::recursive_variant_>
>::type;
Document d;
d = std::map<std::string, Document> {
{"name", "John"},
{"age", 36},
{"admin", true},
{"hobbies", std::vector<Document>
{"programming", "karate"}}
};