'application/json']); $response->getBody()->write(json_encode($data, JSON_UNESCAPED_SLASHES)); return $response; } }