AK: Add JsonObject::remove()

This commit is contained in:
Andreas Kling 2020-09-06 16:08:37 +02:00
parent 8a6a9a8fb6
commit 9dafbc82ff
Notes: sideshowbarker 2024-07-19 02:53:29 +09:00

View File

@ -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>
typename Builder::OutputType serialized() const;