From time to time it happens that chunk returned from http stream does not contain full JSON string, this parsing it to proper JSON object fails, and ends up with application crash. So i made small modifications to ensure that parsing only happens when full JSON string has arrived, and any leftovers are kept for another turn.
From time to time it happens that chunk returned from http stream does not contain full JSON string, this parsing it to proper JSON object fails, and ends up with application crash. So i made small modifications to ensure that parsing only happens when full JSON string has arrived, and any leftovers are kept for another turn.
Any comments?