summaryrefslogtreecommitdiff
path: root/src/components/formatters/include/formatters/formatter_json_rpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/formatters/include/formatters/formatter_json_rpc.h')
-rw-r--r--src/components/formatters/include/formatters/formatter_json_rpc.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/formatters/include/formatters/formatter_json_rpc.h b/src/components/formatters/include/formatters/formatter_json_rpc.h
index 3d921ea901..7055aab1de 100644
--- a/src/components/formatters/include/formatters/formatter_json_rpc.h
+++ b/src/components/formatters/include/formatters/formatter_json_rpc.h
@@ -396,7 +396,8 @@ int32_t FormatterJsonRpc::FromString(const std::string& str,
if (false == params_value.isObject()) {
result |= kInvalidFormat;
} else {
- jsonValueToObj(root[kParams], out[strings::S_MSG_PARAMS]);
+ jsonValueToObj(
+ root[kParams], out[strings::S_MSG_PARAMS], strings::S_MSG_PARAMS);
}
} else if (true == root.isMember(kResult)) {
const Json::Value& result_value = root[kResult];
@@ -404,10 +405,13 @@ int32_t FormatterJsonRpc::FromString(const std::string& str,
if (false == result_value.isObject()) {
result |= kInvalidFormat;
} else {
- jsonValueToObj(root[kResult], out[strings::S_MSG_PARAMS]);
+ jsonValueToObj(
+ root[kResult], out[strings::S_MSG_PARAMS], strings::S_MSG_PARAMS);
}
} else if (true == is_error_response) {
- jsonValueToObj(response_value[kData], out[strings::S_PARAMS][kData]);
+ jsonValueToObj(response_value[kData],
+ out[strings::S_PARAMS][kData],
+ strings::S_PARAMS + "." + kData);
}
if ((kResponse == message_type_string) ||