diff --git a/UI/Qt/AutoComplete.cpp b/UI/Qt/AutoComplete.cpp index abfd7c19975..90306dc7126 100644 --- a/UI/Qt/AutoComplete.cpp +++ b/UI/Qt/AutoComplete.cpp @@ -6,7 +6,6 @@ #include #include -#include #include #include #include @@ -111,8 +110,8 @@ ErrorOr AutoComplete::got_network_response(QNetworkReply* reply) if (reply->error() == QNetworkReply::NetworkError::OperationCanceledError) return {}; - AK::JsonParser parser(ak_byte_string_from_qstring(reply->readAll())); - auto json = TRY(parser.parse()); + auto reply_data = ak_string_from_qstring(reply->readAll()); + auto json = TRY(JsonValue::from_string(reply_data)); auto engine_name = Settings::the()->autocomplete_engine().name; Vector results;