diff --git a/library.json b/library.json
index 28440f8df15df46e2bda2008a8a0ff1e4441eb55..82dd8abe91516dab340ed2d732d536656036f4f4 100644
--- a/library.json
+++ b/library.json
@@ -5,7 +5,8 @@
   "homepage": "https://arduinojson.org/?utm_source=meta&utm_medium=library.json",
   "repository": {
     "type": "git",
-    "url": "https://github.com/bblanchon/ArduinoJson.git"
+    "url": "https://github.com/bblanchon/ArduinoJson.git",
+    "branch": "5.x"
   },
   "version": "5.13.5",
   "authors": {