diff --git a/lib/private/Security/Bruteforce/Throttler.php b/lib/private/Security/Bruteforce/Throttler.php
index 5a964dfbaf4b7250dc6d9860b8a88ec459ce9c82..0de7677285b975eac5e936f689799752e425e2da 100644
--- a/lib/private/Security/Bruteforce/Throttler.php
+++ b/lib/private/Security/Bruteforce/Throttler.php
@@ -161,7 +161,7 @@ class Throttler {
 			'occurred' => $this->timeFactory->getTime(),
 			'ip' => $ip,
 			'subnet' => $this->getSubnet($ip),
-			'metadata' => $metadata,
+			'metadata' => json_encode($metadata),
 		];
 
 		$this->logger->notice(