fixed chunked handling for long json lines