public async System.Threading.Tasks.Task OnComplete(string response) { System.Text.Json.JsonDocument doc = null; if (!string.IsNullOrEmpty(response)) { try { doc = System.Text.Json.JsonDocument.Parse(response); } catch (System.Text.Json.JsonException) { // } } await Complete.InvokeAsync(new UploadCompleteEventArgs() { RawResponse = response, JsonResponse = doc }); }