[System.Text.Json] make possible to deserialize objects from stream without always fully reading stream. #39173
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.Text.Json
Milestone
Currently
JsonSerliazer.DeserializeAsync
method always reads stream until completion. So if I try to deserialize object fromNetworkStream
, it blocks until the connection is open and not returns objects immediately. This seems a really big problem for me when I have a long-lived TCP connection and I send multiple objects over time with that connection.The text was updated successfully, but these errors were encountered: