Currently, I'm looking for ways to deserialize entities from Change Feed Iterator content with System.Text.Json.
I found this example from the documentation, but it uses Newtonsoft.Json and I don't like an approach with JObject and JsonTextReader. Is there are any way to make it more properly and clean?
I've tried to make something like this, but my approach doesn't work.
ResponseMessage response = await iterator.ReadNextAsync();
var entities = await JsonSerializer.DeserializeAsync<IEnumerable<CosmosEntity1>>(response.Content);