JsonObject: Add JsonObject::has(key)

This commit is contained in:
Andreas Kling 2019-10-21 14:47:18 +02:00
parent b74a433809
commit 9c434d8c6a
Notes: sideshowbarker 2024-07-19 11:35:56 +09:00

View file

@ -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));