17 #define RAPIDJSON_WRITE_DEFAULT_FLAGS ::rapidjson::kWriteNanAndInfFlag
18 #define RAPIDJSON_PARSE_DEFAULT_FLAGS ::rapidjson::kParseNanAndInfFlag
21 #include <boost/lexical_cast.hpp>
23 #include <rapidjson/document.h>
30 namespace ns_rapidjson
32 template <
class t_Node>
51 if (node_stack_[depth].isArray())
53 return (getRawNode(depth - 1)[node_stack_[depth].index_]);
56 return (*node_stack_[depth].node_);
62 if (node_stack_.empty())
67 return (getRawNode(node_stack_.size() - 1));
::rapidjson::Document document_
instance of the parser
t_Node & getRawNode(const std::size_t depth)
Get current node.
Copied from a newer version of RapidJSON to add this functionality to older versions.