--- TrackablesResponse.cpp 2024-09-26 23:29:18.935379613 +0200 +++ TrackablesResponse_corrected.cpp 2024-09-26 23:27:27.474796842 +0200 @@ -45,7 +45,7 @@ std::stringstream ss; write_json(ss, this->toPropertyTree(), prettyJson); // workaround inspired by: https://stackoverflow.com/a/56395440 - std::regex reg("\\\"([0-9]+\\.{0,1}[0-9]*)\\\""); + std::regex reg("\\\"([+-]?[0-9]+\\.{0,1}[0-9]*([eE][-+]?[0-9]+)?)\\\""); std::string result = std::regex_replace(ss.str(), reg, "$1"); return result; }