This project has moved and is read-only. For the latest updates, please go here.

Deserialize or Parse JSON from a NetworkStream using JSON.Net

Jul 22, 2010 at 10:20 PM


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

I will be sending many consecutive objects, when I am receiving data via the NetworkStream, how do I know when the first JSON Document ended in order to have JSON.NET Parse the document from the received string?

Or better yet, is there any way to have Json.NET read directly from the NetworkStream and Deserialize/Parse the resulting JSON document?

Let me know Regards