diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-21 11:42:06 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-17 19:52:52 -0500 |
commit | 1dd6b7f5b787e1893b708ddf58492f9fdd50ae51 (patch) | |
tree | 3f9f665b573fa3097b707b1cc8cb08e1572b34cd /AK/JsonPath.cpp | |
parent | efe4329f9fe448eb17784d7a9b9e6e519ec4fa57 (diff) | |
download | serenity-1dd6b7f5b787e1893b708ddf58492f9fdd50ae51.zip |
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
Diffstat (limited to 'AK/JsonPath.cpp')
-rw-r--r-- | AK/JsonPath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/JsonPath.cpp b/AK/JsonPath.cpp index 6668f22622..b681cdf2ee 100644 --- a/AK/JsonPath.cpp +++ b/AK/JsonPath.cpp @@ -19,7 +19,7 @@ JsonValue JsonPath::resolve(JsonValue const& top_root) const for (auto const& element : *this) { switch (element.kind()) { case JsonPathElement::Kind::Key: - root = JsonValue { root.as_object().get(element.key()) }; + root = JsonValue { root.as_object().get_deprecated(element.key()) }; break; case JsonPathElement::Kind::Index: root = JsonValue { root.as_array().at(element.index()) }; |