Chunk detection in json response stream