accept json over websockets