Merge branch feature/fix-npeofjson into release/20190925

Title: Fix eagle refresh instance Npe 

Link: https://code.aone.alibaba-inc.com/weex/weex/codereview/1919679
diff --git a/weex_core/Source/core/bridge/platform/core_side_in_platform.cpp b/weex_core/Source/core/bridge/platform/core_side_in_platform.cpp
index 34d1e49..710ce35 100644
--- a/weex_core/Source/core/bridge/platform/core_side_in_platform.cpp
+++ b/weex_core/Source/core/bridge/platform/core_side_in_platform.cpp
@@ -388,10 +388,9 @@
              }}
         }
     };
-
-    auto final_json_str = final_json.dump().c_str();
-    auto utf16_key = weex::base::to_utf16(const_cast<char*>(final_json_str),
-                                          strlen(final_json_str));
+    std::string out = final_json.dump();
+    auto utf16_key = weex::base::to_utf16(const_cast<char*>(out.c_str()),
+                                          out.length());
     args->value.string = genWeexString(
         reinterpret_cast<const uint16_t*>(utf16_key.c_str()), utf16_key.size());
     msg.push_back(args);