The data returned was not in a json format

Ensure that you have the latest versions of eosws-js or eosws-go - https://github.com/dfuse-io/client-js, or https://github.com/dfuse-io/eosws-go.