How can you stream results as json string downloads?
Posted
by
midas06
on Stack Overflow
See other posts from Stack Overflow
or by midas06
Published on 2011-01-12T04:06:48Z
Indexed on
2011/01/12
15:54 UTC
Read the original article
Hit count: 170
I'm interested in presenting results faster in my mobile app. Is it possible to stream results out as the string downloads? I'm thinking about implementing an IObservable to push out the results as they are downloaded, but I don't know what algorithm to use to properly piece together the data which could be incomplete at any given point.
Hope that was clear enough.
CLARIFICATION: Guess it wasn't clear enough. My issue is the string downloaded is quite long. It can often take 15-20 seconds or more to download. I want to reflect changes faster to my user, so I would like to use reactive extensions to pump out entities as soon as a complete one is received.
My issue is I dont know how to build the parser that can pick out complete entities from an incomplete response string.
© Stack Overflow or respective owner