FIX: can not parse json float in ES on macOS
jira: STUDIO-5889 Change-Id: I622f4b474c378d77b0e43d67a320f023be2d5811
This commit is contained in:
parent
7fcf5aaaf1
commit
476f15c208
|
@ -2716,8 +2716,6 @@ static ENUM enum_index_of(char const *key, char const **enum_names, int enum_cou
|
||||||
|
|
||||||
int MachineObject::parse_json(std::string payload, bool key_field_only)
|
int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||||
{
|
{
|
||||||
CNumericLocalesSetter locales_setter;
|
|
||||||
|
|
||||||
parse_msg_count++;
|
parse_msg_count++;
|
||||||
std::chrono::system_clock::time_point clock_start = std::chrono::system_clock::now();
|
std::chrono::system_clock::time_point clock_start = std::chrono::system_clock::now();
|
||||||
this->set_online_state(true);
|
this->set_online_state(true);
|
||||||
|
@ -2732,6 +2730,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||||
bool restored_json = false;
|
bool restored_json = false;
|
||||||
json j;
|
json j;
|
||||||
json j_pre = json::parse(payload);
|
json j_pre = json::parse(payload);
|
||||||
|
CNumericLocalesSetter locales_setter;
|
||||||
if (j_pre.empty()) {
|
if (j_pre.empty()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue