How to search for body through Middleware to return to the user?

For example I have a controller that returns this:
response.status(200).json({sucesso: ‘test’})

in Middleware after await next ()
can I access the json that was returned to the user? with a response.body ()? or request.body ()? .date()?

Middleware:
await next()
return response.body() ?

Did you try to console.dir(response) (or request) at that point and look for the property you need? Then if you also succed with console.dir(response.body) you could use the value as you wish.