diff options
author | Josh Blum | 2013-06-08 09:57:28 -0700 |
---|---|---|
committer | Josh Blum | 2013-06-08 09:57:28 -0700 |
commit | be8b87885521110ea387831820d105d142de0206 (patch) | |
tree | 6efb66c0e128d2ce7ebc275a177d980dd5d04655 /lib/json_parser.cpp | |
parent | 3a24238960cdedb3a46eb3c5d2eee5d2bf8d806f (diff) | |
download | sandhi-be8b87885521110ea387831820d105d142de0206.tar.gz sandhi-be8b87885521110ea387831820d105d142de0206.tar.bz2 sandhi-be8b87885521110ea387831820d105d142de0206.zip |
gras: query changes from thread query branch
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; |