Added support to convert between 'sio' and a suitably formatted 'json' equivalent.