diff --git a/AK/JsonObject.h b/AK/JsonObject.h index 1c5703e215..0e970cf560 100644 --- a/AK/JsonObject.h +++ b/AK/JsonObject.h @@ -114,6 +114,15 @@ public: } } + bool remove(const String& key) + { + if (m_members.remove(key)) { + m_order.remove(m_order.find_first_index(key).value()); + return true; + } + return false; + } + template typename Builder::OutputType serialized() const;