The underlying jsonparse lib triggers one specific error which is not handled by JSONStream:
Look here:
https://github.com/creationix/jsonparse/blob/master/jsonparse.js#L321
And here:
https://github.com/dominictarr/JSONStream/blob/master/index.js#L140
It would be helpful if JSONStream could also wrap this error as an Invalid JSON message to have a consistent error contract one can check for.
The underlying jsonparse lib triggers one specific error which is not handled by JSONStream:
Look here:
https://github.com/creationix/jsonparse/blob/master/jsonparse.js#L321
And here:
https://github.com/dominictarr/JSONStream/blob/master/index.js#L140
It would be helpful if JSONStream could also wrap this error as an
Invalid JSONmessage to have a consistent error contract one can check for.