diff --git a/src/mtconnect/sink/rest_sink/websocket_session.hpp b/src/mtconnect/sink/rest_sink/websocket_session.hpp index 84eda57e..34ee931e 100644 --- a/src/mtconnect/sink/rest_sink/websocket_session.hpp +++ b/src/mtconnect/sink/rest_sink/websocket_session.hpp @@ -362,10 +362,12 @@ namespace mtconnect::sink::rest_sink { // Skip nulls break; case rapidjson::kFalseType: - request->m_parameters.emplace(make_pair(it.name.GetString(), false)); + request->m_parameters.emplace( + make_pair(it.name.GetString(), ParameterValue(bool(false)))); break; case rapidjson::kTrueType: - request->m_parameters.emplace(make_pair(it.name.GetString(), true)); + request->m_parameters.emplace( + make_pair(it.name.GetString(), ParameterValue(bool(true)))); break; case rapidjson::kObjectType: break; @@ -373,24 +375,25 @@ namespace mtconnect::sink::rest_sink { break; case rapidjson::kStringType: request->m_parameters.emplace( - make_pair(it.name.GetString(), string(it.value.GetString()))); + make_pair(it.name.GetString(), ParameterValue(it.value.GetString()))); break; case rapidjson::kNumberType: if (it.value.Is()) - request->m_parameters.emplace(make_pair(it.name.GetString(), it.value.Get())); + request->m_parameters.emplace( + make_pair(it.name.GetString(), ParameterValue(it.value.Get()))); else if (it.value.Is()) request->m_parameters.emplace( - make_pair(it.name.GetString(), it.value.Get())); + make_pair(it.name.GetString(), ParameterValue(it.value.Get()))); else if (it.value.Is()) - request->m_parameters.emplace( - make_pair(it.name.GetString(), (uint64_t)it.value.Get())); + request->m_parameters.emplace(make_pair( + it.name.GetString(), ParameterValue((uint64_t)it.value.Get()))); else if (it.value.Is()) request->m_parameters.emplace( - make_pair(it.name.GetString(), it.value.Get())); + make_pair(it.name.GetString(), ParameterValue(it.value.Get()))); else if (it.value.Is()) request->m_parameters.emplace( - make_pair(it.name.GetString(), it.value.Get())); + make_pair(it.name.GetString(), ParameterValue(it.value.Get()))); break; }