mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 00:19:27 +00:00
JsonObject: Add JsonObject::has(key)
This commit is contained in:
parent
b74a433809
commit
9c434d8c6a
|
@ -48,6 +48,11 @@ public:
|
|||
return (*it).value;
|
||||
}
|
||||
|
||||
bool has(const String& key) const
|
||||
{
|
||||
return m_members.contains(key);
|
||||
}
|
||||
|
||||
void set(const String& key, JsonValue&& value)
|
||||
{
|
||||
m_members.set(key, move(value));
|
||||
|
|
Loading…
Reference in a new issue