diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp
index 4676b2c5..6ef8c374 100644
--- a/include/nlohmann/json.hpp
+++ b/include/nlohmann/json.hpp
@@ -5730,7 +5730,7 @@ class basic_json
                 case value_t::array:
                     // note parentheses are necessary, see
                     // https://github.com/nlohmann/json/issues/1530
-                    return (*lhs.m_value.array < *rhs.m_value.array);
+                    return (*lhs.m_value.array) < (*rhs.m_value.array);
 
                 case value_t::object:
                     return *lhs.m_value.object < *rhs.m_value.object;
diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp
index 3bd76a12..e6b27f8d 100644
--- a/single_include/nlohmann/json.hpp
+++ b/single_include/nlohmann/json.hpp
@@ -18495,7 +18495,7 @@ class basic_json
                 case value_t::array:
                     // note parentheses are necessary, see
                     // https://github.com/nlohmann/json/issues/1530
-                    return (*lhs.m_value.array < *rhs.m_value.array);
+                    return (*lhs.m_value.array) < (*rhs.m_value.array);
 
                 case value_t::object:
                     return *lhs.m_value.object < *rhs.m_value.object;