https://learn.microsoft.com/en-us/dotnet/api/system.text.json.jsonelement.getpropertycount?view=net-10.0
JsonElement.GetPropertyCount Method (System.Text.Json) | Microsoft Learn
Gets the number of properties contained within the current object value.
methodsystemtextjsonmicrosoft