response.body is an Array of Strings. We should get the first element and It should be serialized

This commit is contained in:
jules 2015-10-23 16:01:31 +02:00
parent 7997b21b17
commit 3fd1ba13f3

View file

@ -3,7 +3,7 @@ module GrapeLogging
class Response < GrapeLogging::Loggers::Base
def parameters(request, response)
{
response: JSON.parse(response.body)
response: JSON.parse(response.body.first)
}
end
end