response.body is an Array of Strings. We should serialized every body in this Array

This commit is contained in:
jules 2015-10-23 16:03:53 +02:00
parent 3fd1ba13f3
commit c90d565ebe

View file

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