[fix] put try catch around JSON.parse()

Returns `JSON.parse()` or emits the exception as an error event and
returns ''