diff options
-rw-r--r-- | main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -184,11 +184,6 @@ std::string get(const std::string& sPath, const Json::Value& jData) { return "false"; } } - if (tmp->isDouble()) { - std::stringstream ss; - ss << tmp->asDouble(); - return ss.str(); - } if (tmp->isInt()) { std::stringstream ss; ss << tmp->asInt(); @@ -199,6 +194,11 @@ std::string get(const std::string& sPath, const Json::Value& jData) { ss << tmp->asUInt(); return ss.str(); } + if (tmp->isDouble()) { + std::stringstream ss; + ss << tmp->asDouble(); + return ss.str(); + } if (g_iOptions & OPT_JSOBJ) { //Returning Json Object |