fix bug where in some rare cases invalid json would be handled differently depending on where the stream was broken up
apply bugfix to built code
fix bug where parsing invalid json would sometimes behave differently depending where the stream breaks up the content