From af05a354fa3eb35aa69a52e30a7834659fa2cc0c Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Thu, 29 Nov 2018 16:44:43 +0100 Subject: [PATCH] Stop json-encoding everything --- lib/redis/rediswriter-objects.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/redis/rediswriter-objects.cpp b/lib/redis/rediswriter-objects.cpp index 7ceaf9069..e0421f31e 100644 --- a/lib/redis/rediswriter-objects.cpp +++ b/lib/redis/rediswriter-objects.cpp @@ -654,10 +654,10 @@ Dictionary::Ptr RedisWriter::SerializeState(const Checkable::Ptr& checkable) if (cr) { // TODO: Long Output did not work in my test cases. Need to investigate - attrs->Set("output", JsonEncode(CompatUtility::GetCheckResultOutput(cr))); + attrs->Set("output", CompatUtility::GetCheckResultOutput(cr)); attrs->Set("long_output", CompatUtility::GetCheckResultLongOutput(cr)); - attrs->Set("performance_data", JsonEncode(cr->GetPerformanceData())); - attrs->Set("command", JsonEncode(cr->GetCommand())); + attrs->Set("performance_data", cr->GetPerformanceData()); + attrs->Set("command", cr->GetCommand()); attrs->Set("execution_time", cr->CalculateExecutionTime()); attrs->Set("latency", cr->CalculateLatency()); }