mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
AK: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
8d3b268cca
commit
79547896b7
2 changed files with 6 additions and 2 deletions
|
@ -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_deprecated(element.key()) };
|
||||
root = JsonValue { root.as_object().get(element.key()).value() };
|
||||
break;
|
||||
case JsonPathElement::Kind::Index:
|
||||
root = JsonValue { root.as_array().at(element.index()) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue