From 8647743504325a28caa3c7db1461d5614b25d867 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 22 Dec 2022 14:27:53 +0000 Subject: [PATCH] Utilities/json: Replace uses of JsonObject::get_deprecated()/get_ptr() --- Userland/Utilities/json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/json.cpp b/Userland/Utilities/json.cpp index 280ac6b454..d0653dc453 100644 --- a/Userland/Utilities/json.cpp +++ b/Userland/Utilities/json.cpp @@ -139,7 +139,7 @@ JsonValue query(JsonValue const& value, Vector& key_parts, size_t ke JsonValue result {}; if (value.is_object()) { - result = value.as_object().get_deprecated(key); + result = value.as_object().get(key).value_or({}); } else if (value.is_array()) { auto key_as_index = key.to_int(); if (key_as_index.has_value())