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())