mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
AK: Add JsonObject::remove()
This commit is contained in:
parent
8a6a9a8fb6
commit
9dafbc82ff
1 changed files with 9 additions and 0 deletions
|
@ -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>
|
template<typename Builder>
|
||||||
typename Builder::OutputType serialized() const;
|
typename Builder::OutputType serialized() const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue