Adding connections support

Now also connections are converted in JSON; partial support of parsing