client(connection): Expect parsed json to make it work with Primus.