summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AK/JsonArray.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/AK/JsonArray.h b/AK/JsonArray.h
index 5d9fe62abb..aea8601f34 100644
--- a/AK/JsonArray.h
+++ b/AK/JsonArray.h
@@ -47,6 +47,13 @@ public:
{
}
+ template<typename T>
+ JsonArray(const Vector<T>& vector)
+ {
+ for (auto& value : vector)
+ m_values.append(move(value));
+ }
+
JsonArray& operator=(const JsonArray& other)
{
if (this != &other)