Deserialize or Parse JSON from NetworkStream using JSON.Net

I am sending serialized objects via NetWorkStream to another computer, on the receiving side I would like to deserialize these objects.

I will send many sequential objects when I receive data through NetworkStream, how do I know when the first JSON document ended so that JSON.NET will parse the document from the received string?

Or even better, is there a way for Json.NET to read the resulting JSON document directly from NetworkStream and Deserialize / Parse?

Let me know the relationship

Albert

+3
source share
1 answer

- , , . , , , .

+3

Source: https://habr.com/ru/post/1756076/


All Articles