diff options
Diffstat (limited to 'lib/json_parser.cpp')
-rw-r--r-- | lib/json_parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/json_parser.cpp b/lib/json_parser.cpp index d66297f..eef70f3 100644 --- a/lib/json_parser.cpp +++ b/lib/json_parser.cpp @@ -9,6 +9,7 @@ #endif //--------- end bullshit --------------// +#include "gras_impl/query_common.hpp" #include "gras_impl/debug.hpp" #include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/ptree.hpp> @@ -16,7 +17,7 @@ #include <sstream> #include <string> -boost::property_tree::ptree json_to_ptree(const std::string &s) +boost::property_tree::ptree gras::json_to_ptree(const std::string &s) { std::stringstream ss(s); boost::property_tree::ptree pt; @@ -25,7 +26,7 @@ boost::property_tree::ptree json_to_ptree(const std::string &s) } //http://stackoverflow.com/questions/13464383/boost-property-write-json-incorrect-behaviour -std::string ptree_to_json(const boost::property_tree::ptree &p) +std::string gras::ptree_to_json(const boost::property_tree::ptree &p) { boost::regex exp("\"(null|true|false|[0-9]+(\\.[0-9]+)?)\""); std::stringstream ss; |