summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 41885c7..761b507 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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